www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10788] New: Regression: forward reference of enum member E from another module.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10788

           Summary: Regression: forward reference of enum member E from
                    another module.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ibuclaw ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw ubuntu.com> 2013-08-09 11:44:45 PDT ---
Regression within the last 11 months at most was when this was last working (I
know it looks odd, but minimal tests of 2K+ projects always do).


A.d:
---
module A;
import B;
enum MyEnum F = E;
---

B.d:
---
module B;
import A;
enum : uint { E }    // Fails
//enum { E }         // OK
alias uint MyEnum;
---


Run: dmd -c B.d
---
A.d(3): Error: forward reference of enum member E
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 09 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10788


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |henning still-hidden.de


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-08-10 05:39:24
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2462

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 10 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10788



--- Comment #2 from github-bugzilla puremagic.com 2013-08-11 17:10:01 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9cdf4dcd2a4d21e3019493d19277c3b135ee6c22
fix issue 10788 - forward reference of enum member E from another module

https://github.com/D-Programming-Language/dmd/commit/1e14c27c91d74b0c1281ac3d0b08d8edc74f4eb2
Merge pull request #2462 from hpohl/10788

[REG??] fix issue 10788 - forward reference of enum member E from another
module

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10788


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2013