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


--- Comment #0 from deadalnix <deadalnix gmail.com> 2013-05-23 09:42:30 PDT ---
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


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2013-05-23
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



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-05-23 18:22:00 PDT ---
(In reply to comment #0)
 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?
(In reply to comment #1)
 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



--- Comment #3 from deadalnix <deadalnix gmail.com> 2013-05-24 05:55:00 PDT ---
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


--- Comment #4 from deadalnix <deadalnix gmail.com> 2013-05-24 06:00:23 PDT ---
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