[Issue 11201] ICE: -inline stops compilation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 8 22:43:07 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11201
--- Comment #2 from daniel350 at bigpond.com 2013-10-08 22:43:06 PDT ---
Further reduced:
struct Foo {
float a, b;
Foo opUnary(string op)() const { return this; }
}
auto f1(T)(T a) { return a; }
auto f2(T)(T a) { return f1(a); }
void main() {}
unittest {
auto a = Foo(0, 1);
assert(f2(-a) == a);
}
--
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