[Issue 9050] failing return type inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 5 09:06:46 PST 2013


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


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |timon.gehr at gmx.ch
         Resolution|WORKSFORME                  |
            Summary|compiler crash on return    |failing return type
                   |type inference              |inference


--- Comment #3 from timon.gehr at gmx.ch 2013-02-05 09:06:45 PST ---
(In reply to comment #2)
> 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.

No, that is a bug. There is no reason for the compiler to reject the code. (It
even works if B is not templated.)

-- 
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