www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8935] New: ICE(cod3.c, cod4.c): Returning string literal casted to static array

reply d-bugmail puremagic.com writes:
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



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: -------
Nov 02 2012
parent d-bugmail puremagic.com writes:
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



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: -------
Oct 08 2013