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

--- Comment #0 from 2011-08-25 18:51:20 PDT ---
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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to