http://d.puremagic.com/issues/show_bug.cgi?id=3611

           Summary: Enum forward referencing regression
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: 2kor...@gmail.com


--- Comment #0 from Koroskin Denis <2kor...@gmail.com> 2009-12-12 04:31:06 PST 
---
I decided to upgrade to a newer compiler version and noticed a regression
between DMD2.031 (that compiles okay) and DMD2.032 (that issues "enum Foo is
foward referenced").

module A;

class B : A
{
}

enum SomeEnum
{
    EnumMember
}

class A
{
    SomeEnum someEnum()
    {
        return SomeEnum.EnumMember;
    }
}

Ouput: A.d(8): Error: enum SomeEnum is forward referenced

Blocker.

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

Reply via email to