[Issue 12920] New: ICE: Internal error: backend/symbol.c 1035
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jun 14 04:11:35 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12920
Issue ID: 12920
Summary: ICE: Internal error: backend/symbol.c 1035
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: schuetzm at gmx.net
template among(values...)
{
uint among(Value)(Value value)
{
switch (value) {
foreach (i, v; values) {
case v:
return i + 1;
}
default:
return 0;
}
}
}
void main() {
int a, b, c;
2.among!(a, b, c);
}
--
More information about the Digitalmars-d-bugs
mailing list