[Issue 9050] compiler crash on return type inference

2013-02-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9050


Marco Leise  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #2 from Marco Leise  2013-02-05 08:55:25 PST ---
Ok, I don't quite remember what my thoughts were about the return type
inference, but it looks valid for the compiler to reject the code. So I
followed your advice and set it to resolved.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 9050] compiler crash on return type inference

2013-02-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9050


Andrej Mitrovic  changed:

   What|Removed |Added

   Keywords|ice |
 CC||andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic  2013-02-04 
12:38:06 PST ---
Test-case without requiring -unittest:

struct A(T) {}
struct B(T) {
void f() { foo(A!int()); }
}
auto foo()(A!int base) pure {
return B!int();
}
auto l = foo(A!int());

void main() { }

The crash is gone in 2.061 so this is no longer an ICE.

Is the return type inference error expected? Otherwise close with WORKSFORME if
this was only an ICE report.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---