[Issue 4257] New: ICE(interpret.c): passing parameter into CTFE as ref parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 1 07:21:29 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4257
Summary: ICE(interpret.c): passing parameter into CTFE as ref
parameter
Product: D
Version: 2.041
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code, wrong-code
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> 2010-06-01 07:21:27 PDT ---
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.
--
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