digitalmars.D.bugs - [Issue 6556] New: ICE for ImportStatement in DebugStatement
- d-bugmail puremagic.com (27/27) Aug 25 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6556
- d-bugmail puremagic.com (6/6) Aug 25 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6556
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 puremagic.com ReportedBy: dawg dawgfoto.de 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: -------
Aug 25 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6556 https://github.com/D-Programming-Language/dmd/pull/333 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 25 2011