Bug 3842 – ICE(expression.c) using pointer in CTFE

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2010-02-22T14:32:00Z
Last change time
2014-04-18T09:12:04Z
Keywords
ice-on-valid-code, patch
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2010-02-22T14:32:11Z
Regression since 1.047 and 2.032. --- struct Bug3842{ int x; } int test3842(int z) { Bug3842 w; w.x = 3; return (*(&w)).x; } static assert(test3842(51)==51); --- It's just crashing while printing the error message. PATCH: in interpret.c, DotVarExp::interpret. else - error("%s.%s is not yet implemented at compile time", ex->toChars(), var->toChars()); + error("%s.%s is not yet implemented at compile time", e1->toChars(), var->toChars()); }
Comment #1 by clugdbug — 2010-04-09T13:41:25Z
Fixed DMD1.058 and 2.043.