www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1879] New: Compiler segfaults on 'scope' and 'static if'

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: samukha 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;
    {
    }
}


-- 
Feb 28 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1879


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 1.028


-- 
Mar 06 2008