[Issue 7167] New: template function overload brings dmd internal error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 26 08:37:35 PST 2011


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

           Summary: template function overload brings dmd internal error
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2011-12-26 08:37:33 PST ---
This code raises internal error:
--------------
import std.conv;
T to(T)(string x) { return std.conv.to!T(x); }
void main() { auto i = "1".to!int(); }
--------------
$ dmd -run main
module main.to
Internal error: e2ir.c 683

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