[Issue 10273] New: ICE(ctfeexpr.c): using CTFE after error in struct default values
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 5 01:36:01 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10273
Summary: ICE(ctfeexpr.c): using CTFE after error in struct
default values
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-06-05 01:35:59 PDT ---
struct Bug10273 {
int val = 3.45;
}
int bug10273()
{
Bug10273 p;
return 1;
}
static assert(bug10273());
---
bug.d(2): Error: cannot implicitly convert expression (3.45) of type double to
int
dmd: ctfeexpr.c:354: Expression* copyLiteral(Expression*): Assertion `0'
failed.
Aborted
don at labs-19:~/compiler
--
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