D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7167 - template function overload brings dmd internal error
Summary: template function overload brings dmd internal error
Status: RESOLVED DUPLICATE of issue 7170
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-26 08:37 UTC by SHOO
Modified: 2011-12-30 21:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description SHOO 2011-12-26 08:37:33 UTC
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
Comment 1 Kenji Hara 2011-12-30 21:30:22 UTC

*** This issue has been marked as a duplicate of issue 7170 ***