D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7170 - [UFCS] array + specialized template member syntax causes ICE
Summary: [UFCS] array + specialized template member syntax causes ICE
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-valid-code, patch
: 7167 (view as issue list)
Depends on:
Blocks:
 
Reported: 2011-12-27 01:31 UTC by Kenji Hara
Modified: 2011-12-30 21:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2011-12-27 01:31:13 UTC
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
}
Comment 3 Kenji Hara 2011-12-30 21:30:23 UTC
*** Issue 7167 has been marked as a duplicate of this issue. ***