[Issue 4516] New: forward declaration of enum not supported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 27 00:21:21 PDT 2010


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

           Summary: forward declaration of enum not supported
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: braddr at puremagic.com


--- Comment #0 from Brad Roberts <braddr at puremagic.com> 2010-07-27 00:21:19 PDT ---
module foo;

struct A { B b; }
enum B { Z }

$ dmd -c foo.d
foo.d(3): Error: enum B is forward referenced

(flagging as D2 only since I haven't tested with D1 -- quite possibly broken
with both)

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


More information about the Digitalmars-d-bugs mailing list