[Issue 12498] while(string) causes compiler to crash during CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 31 05:17:06 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12498


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-31 14:17:04 CEST ---
Thanks for the reduced sample, but in the future please paste code samples
inline (dpaste can sometimes go offline):

-----
string a()
{
    string b;
    while (b) { } // ICE
    return "";
}

void main()
{
    enum t = a();
    string x = t;
}
-----

$ dmd test.d
-----
test.d(12):        called from here: a()
test.d(12):        called from here: a()
__error
DMD v2.066 DEBUG
[] error Internal error: e2ir.c 858
-----

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


More information about the Digitalmars-d-bugs mailing list