[Bug 23] New: DDoc Error: "static if conditional cannot be at global scope."

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 6 09:26:51 PST 2006


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

           Summary: DDoc Error: "static if conditional cannot be at global
                    scope."
           Product: D
           Version: 0.148
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: walter at digitalmars.com
        ReportedBy: sean at f4.ca


DMD DDoc generation will not accept static if blocks defined at class scope,
though the code compiles cleanly to an executable.

C:\code\d\bugs>type 148_1.d
/**
 *
 */
struct MyStruct(T)
{
    static if( true )
    {
        void f1() {}
    }
}

void main()
{

}
C:\code\d\bugs>dmd -D -o- 148_1.d
148_1.d(6): Error: static if conditional cannot be at global scope

C:\code\d\bugs>


-- 




More information about the Digitalmars-d-bugs mailing list