[Issue 9050] compiler crash on return type inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 4 12:38:07 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9050


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice                         |
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list