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: [email protected]
Reporter: [email protected]
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);
}
--
