Following code causes ICE. T to(T)(string x) { return 1; } void main() { // auto i = to!int("1"); // OK auto j = "1".to!int(); // NG, Internal error: e2ir.c 683 }
https://github.com/D-Programming-Language/dmd/pull/585
https://github.com/D-Programming-Language/dmd/commit/c268c4a2dc20aae024bce81555833b806a56f718
*** Issue 7167 has been marked as a duplicate of this issue. ***