[Issue 11550] New: [ICE] Checking if std.conv.to compiles with an array of non-builtins results in an ICE in s2ir.c.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 19 00:58:18 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11550
Summary: [ICE] Checking if std.conv.to compiles with an array
of non-builtins results in an ICE in s2ir.c.
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: opantm2+dbugs at gmail.com
--- Comment #0 from Kapps <opantm2+dbugs at gmail.com> 2013-11-19 00:58:17 PST ---
Sample:
import std.conv;
struct Foo { }
void test(T)() {
static if(is(typeof(to!T(string.init)))) { }
}
void main() {
test!(Foo[]);
}
Output:
rdmd test.d
Statement::toCBuffer()
Internal error: s2ir.c 135
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list