[Bug 159] New: forward reverence with invalid struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 27 12:57:52 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=159

           Summary: forward reverence with invalid struct
           Product: D
           Version: 0.159
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de


This compiled with dmd 0.157. Well i think its not legal code ...

public struct S; // this should be an error, i think
public struct S1 { // error is show here
    S s;
}

Error:
mod.d(7): struct mod.S1 unable to resolve forward reference


-- 




More information about the Digitalmars-d-bugs mailing list