http://bugzilla.gdcproject.org/show_bug.cgi?id=218
Bug ID: 218 Summary: ICE: internal compiler error: in make_ssa_name_fn, at tree-ssanames.c:151 Product: GDC Version: development Hardware: x86 OS: MinGW Status: NEW Severity: major Priority: Normal Component: gdc Assignee: ibuc...@gdcproject.org Reporter: sebastien.alai...@gmail.com The following code crashes the optimizer: struct S2 { this(int* pdata_) { pdata = pdata_; } void opIndexAssign(int, size_t) { } int* pdata; }; struct S1 { S2 getS2() { return S2(data.ptr); } int[] data; int[] tab2; }; S1 f() { S1 r; for(int i = 0; i < 1; ++i) r.getS2()[0] = 0; return r; } S1 var; static this() { var = f(); } To reproduce: $ i686-vendor-mingw32-gdc -c -O3 crash_ssa/yo.d crash_ssa/yo.d: In function '_staticCtor1': crash_ssa/yo.d:37:1: internal compiler error: in make_ssa_name_fn, at tree-ssanames.c:151 static this() ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- You are receiving this mail because: You are watching all bug changes.