http://d.puremagic.com/issues/show_bug.cgi?id=11201
Summary: ICE: -inline stops compilation
Product: D
Version: D2
Platform: x86_64
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-10-08 22:37:35 PDT ---
struct Foo {
float a, b;
Foo opUnary(string op)() const { return this; }
Foo opBinary(string op)(float) { return this; }
}
auto f1(T)(T a) { return 1; }
auto f2(T)(T a) { return a * f1(a); }
void main() {}
unittest {
auto a = Foo(0, 1);
assert(f2(-a) == a);
}
I've reduce the code as much I thought possible, removal of anything else stops
the ICE occuring.
When compiling the above code, with the following command line arguments:
`dmd -unittest -inline test.d`
Displays
`Internal error: backend/symbol.c 1036`
Confirmed with Arch Linux and OSX.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------