← Back to index
|
Original Bugzilla link
Bug 10273 – ICE(ctfeexpr.c): using CTFE after error in struct default values
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-05T01:35:00Z
Last change time
2015-06-09T05:11:43Z
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0
by clugdbug — 2013-06-05T01:35:59Z
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@labs-19:~/compiler
Comment #1
by github-bugzilla — 2013-06-05T04:12:30Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5590e1ec349b0a92a29a13fb8ae81e9bd8eea5c2
Fix bug 10273: ICE(ctfeexpr.c): using CTFE after error in struct init
https://github.com/D-Programming-Language/dmd/commit/9e87b082d6f6651580f13eaafef0c838c4cdb1b3
Merge pull request #2134 from donc/ctfe10273_icestructinit Fix bug 10273: ICE(ctfeexpr.c): using CTFE after error in struct init