Bug 4257 – ICE(interpret.c): passing parameter into CTFE as ref parameter

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-06-01T07:21:00Z
Last change time
2014-02-15T02:43:14Z
Keywords
ice-on-invalid-code, wrong-code
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2010-06-01T07:21:27Z
int bug4257(ref int x) { return 3; } void bug4257b(int y) { static assert(bug4257(y)); } -------- assert interpret.c(190) istate And if it's not a reference parameter, it compiles but generates wrong code. This is the root cause of bug 3809, for example.
Comment #1 by bugzilla — 2010-06-02T15:34:10Z