[Issue 1333] New: -inline ICE: passing an array element to an inner class's constructor in a nested function, all in a class or struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 11 09:20:07 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1333
Summary: -inline ICE: passing an array element to an inner
class's constructor in a nested function, all in a class
or struct
Product: D
Version: 1.018
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: deewiant at gmail.com
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'".
--
More information about the Digitalmars-d-bugs
mailing list