[Issue 1879] New: Compiler segfaults on 'scope' and 'static if'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 28 14:16:03 PST 2008


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

           Summary: Compiler segfaults on 'scope' and 'static if'
           Product: D
           Version: 1.027
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


This combination of 'scope' and 'static if' causes the compiler to segfault:
The workaround is to use try/finally

void main()
{
    scope (exit)
    {
    }

    static if (false) // Compiles if true;
    {
    }
}


-- 



More information about the Digitalmars-d-bugs mailing list