www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17690] New: scope guards leak declarations


          Issue ID: 17690
           Summary: scope guards leak declarations
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timon.gehr gmx.ch

void main(){
    scope(exit) int x=3;
Internal error: ddmd/backend/symbol.c 1040

The problem is that the parser passes PScurlyscope instead of PSscope when
parsing the scope guard statement.

Jul 25 2017