digitalmars.D.bugs - [Issue 5918] New: Cannot forward-reference to a nested enum type with any attribute
- d-bugmail puremagic.com (35/35) May 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5918
- d-bugmail puremagic.com (13/13) Mar 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5918
http://d.puremagic.com/issues/show_bug.cgi?id=5918 Summary: Cannot forward-reference to a nested enum type with any attribute Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: kennytm gmail.com Blocks: 340 --- Comment #0 from kennytm gmail.com 2011-05-02 11:34:03 PDT --- Test case: ------------------------ struct T { E e; public // <-- comment this out is OK. enum E { x } } ------------------------ x.d(5): Error: enum E is forward referenced x.d(5): Error: enum E is forward referenced ------------------------ This applies to *all* kinds of attributes, like 'deprecated' or 'static' or ' safe'. The T can be changed to any kinds of aggregates (class, interface, union) and the bug still persists. Moving the 'E e;' below the 'enum E' removes the error, so is not using any attributes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5918 Maksim Zholudev <maximzms gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |maximzms gmail.com Resolution| |WORKSFORME --- Comment #2 from Maksim Zholudev <maximzms gmail.com> 2013-03-04 09:05:36 PST --- Compiles on Linux 64-bit with DMD Git head: https://github.com/D-Programming-Language/dmd/commit/13b3bdbf3819fec810ebfb077957510612dfa815 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 04 2013