[Issue 11201] New: ICE: -inline stops compilation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 8 22:37:37 PDT 2013
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: nobody at puremagic.com
ReportedBy: daniel350 at bigpond.com
--- Comment #0 from daniel350 at bigpond.com 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: -------
More information about the Digitalmars-d-bugs
mailing list