Summary: ICE(cod3.c, cod4.c): Returning string literal casted
                    to static array
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Nick Sabalausky <> 2012-11-02 
05:07:39 PDT ---
char[1] foo()
    return cast(char[1])"a";

$ dmd test.d
Internal error: ..\ztc\cod3.c 528

Changing to zero-length moves the ICE to cod4.c:

char[0] foo()
    return cast(char[0])"";

$ dmd test.d
Internal error: ..\ztc\cod4.c 359

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

Reply via email to