[Issue 1415] New: gdc crash
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 12 20:15:48 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1415
Summary: gdc crash
Product: DGCC aka GDC
Version: 0.23
Platform: Other
OS/Version: Other
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: sean at chittenden.org
See sample code. Very easy to reproduce.
$ gdc -o /tmp/bug.o -c /tmp/bug.d
/tmp/bug.d:7: Error: Need 'this' to access member f
/tmp/bug.d:8: Error: Need 'this' to access member f
/tmp/bug.d: In function 'init':
/tmp/bug.d:8: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Exit 1
### BEGIN CODE ###
class Foo {
void bar() { }
}
class Bug {
static Bug init() {
f = new Foo();
f.bar();
Bug ret = new Bug();
return ret;
}
private:
Foo f;
}
### END CODE ###
--
More information about the D.gnu
mailing list