[Issue 6556] New: ICE for ImportStatement in DebugStatement
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Aug 25 18:51:23 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6556
           Summary: ICE for ImportStatement in DebugStatement
           Product: D
           Version: D2
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2011-08-25 18:51:20 PDT ---
debug=BUG;
void foo() {
  debug(BUG) import anything;
}
---
Import::semantic is assuming that the scope has a scope symbol and
calls importScope on it. It segfaults because debug create a new scope
without symbol. The correct fix seems to be calling importScope on the first
enclosing scope that has a symbol. That way it behaves as
Scope::insert(Dsymbol*).
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list