November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8935

           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
        AssignedTo: nobody@puremagic.com
        ReportedBy: cbkbbejeap@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8935


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2013-10-08 23:36:47 PDT ---
Works as of 2.064 head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------