Summary: ICE: assigning power to immutable in nested function
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Lars T. Kyllingstad <> 2010-07-15 
06:41:42 PDT ---
Test case:

    void f()
        int g()
            immutable z = 2^^2;  // or const, doesn't matter
            return z;


    Internal error: ../ztc/symbol.c 1041

The error message disappears if you
    - make g() return something other than z
    - make z mutable
    - assign z something other than a power expression

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

Reply via email to