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



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



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




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


[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