Bug 1333 – -inline ICE: passing an array element to an inner class's constructor in a nested function, all in a class or struct
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-07-11T11:20:00Z
Last change time
2014-02-16T15:26:17Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla
Comments
Comment #0 by matti.niemenmaa+dbugzilla — 2007-07-11T11:20:02Z
Gotta love these "summaries".
// or class Outer
struct Outer {
class Inner {
this(int) {}
}
int[] a;
void f() {
void nested() {
new Inner(a[0]);
}
nested();
}
}
The above code compiles fine normally, but with -inline, DMD gives "Assertion failure: 'ids->vthis' on line 505 in file 'inline.c'".