[Issue 1239] New: ICE when empty tuple is passed to variadic template function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 17 07:07:39 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1239
Summary: ICE when empty tuple is passed to variadic template
function
Product: D
Version: 1.014
Platform: PC
OS/Version: All
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: manuelk89 at gmx.net
template Tuple(E...)
{
alias E Tuple;
}
// variadic template function
void VarArg(T...)(T args)
{
}
void main()
{
// called with empty tuple:
VarArg( Tuple!() ); // ICE
VarArg( ); // ok
VarArg( Tuple!(1,2,3) ); // ok
}
---------------------------
dmd output:
dmd: template.c:3189: Identifier* TemplateInstance::genIdent(): Assertion
`global.errors' failed.
Aborted (core dumped)
--
More information about the Digitalmars-d-bugs
mailing list