← Back to index
|
Original Bugzilla link
Bug 7167 – template function overload brings dmd internal error
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-12-26T08:37:00Z
Last change time
2011-12-30T21:30:22Z
Assigned to
nobody
Creator
zan77137
Comments
Comment #0
by zan77137 — 2011-12-26T08:37:33Z
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
by k.hara.pg — 2011-12-30T21:30:22Z
*** This issue has been marked as a duplicate of issue 7170 ***