www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10151] New: final: before enum is now an error.

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

           Summary: final: before enum is now an error.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: deadalnix gmail.com



final:

enum Foo { Bar }

Used to compile. Is an error in git master :
Error: variable module.Bar final cannot be applied to variable, perhaps you
meant const?

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com



14:12:02 PDT ---
This does compile with 2.063 beta. Are you working off of the 2.063 branch?

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





 final:
 
 enum Foo { Bar }
 
 Used to compile. Is an error in git master :
 Error: variable module.Bar final cannot be applied to variable, perhaps you
 meant const?
 This does compile with 2.063 beta. Are you working off of the 2.063 branch?
The root cause would be same as bug 10144. deadalnix, could you please give us a complete test case which can reproduce the error? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 23 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10151




Finally I could reduce the bug to a simple test case. Probably a duplicate of
10144. Testing with updated dmd right now.

final:

class A(B b) {
}

enum B {
    C
}

A!(B.C) ABC;

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


deadalnix <deadalnix gmail.com> changed:

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



It is solved in master. Thank you for your work !

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