www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11535] New: Strange ICE

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11535

           Summary: Strange ICE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: temtaime gmail.com



import std.digest.md;

string md5(string s)  {
    return s.md5Of.toHexString;
}

struct C {
    string random_state = md5(`TEST`);
}

ctfeexpr.c:1833: void recursiveBlockAssign(ArrayLiteralExp*, Expression*,
bool): Assertion `ae->type->ty == Tsarray || ae->type->ty == Tarray' failed.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 17 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11535


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice
                 CC|                            |yebblies gmail.com
            Summary|Strange ICE                 |CTFE ICE on reassigning a
                   |                            |static array initialized
                   |                            |with block assignment



This boils down to something like

ubyte[3] arr;
arr = arr.init;
arr = [1, 2, 3];

But not exactly that.

recursiveBlockAssign fails because the rhs is a ubyte

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 17 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11535


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blm768 gmail.com



*** Issue 10742 has been marked as a duplicate of this issue. ***

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