[Issue 9908] New: CTFE ICE global static array with block initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 8 21:27:11 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9908
Summary: CTFE ICE global static array with block initializer
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2013-04-08 21:27:07 PDT ---
static const int[3] sa1 = 1;
bool blah()
{
return sa1 == [1,1,1];
}
static assert(blah());
--
bug.d(7): Error: CTFE internal error: bad compare
dmd: ctfeexpr.c:1297: int ctfeRawCmp(Loc, Expression*, Expression*): Assertion
`0' failed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list