[Issue 1138] New: ICE when tuple template gets indexed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 13 06:24:57 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1138
Summary: ICE when tuple template gets indexed
Product: D
Version: 1.012
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: ice-on-invalid-code, ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: manuelk89 at gmx.net
// file main.d
template Tuple(E...)
{
alias E items;
}
alias Tuple!("foo").items tup; // that works fine
void main()
{
// ICE is caused by this line.
writefln(Tuple!("foo").items); // ICE for value parameters, but not for
type parameters.
}
-----------------------------------
tested with dmd 1.011 and 1.012:
$ dmd main
dmd: expression.c:4548: virtual Expression* DotIdExp::semantic(Scope*):
Assertion `0' failed.
--
More information about the Digitalmars-d-bugs
mailing list