[Issue 2230] New: Compiler crashes on invalid code (revisited)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 16 02:36:11 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2230
Summary: Compiler crashes on invalid code (revisited)
Product: D
Version: 2.017
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: samukha at voliacable.com
The following crashes the compiler if Bar does not exist or has an error.
Related to 2229
template Bar(A...)
{
alias inty Bar; // invalid
}
void foo(A...)(Bar!(A) a)
{
}
void main()
{
// works if second set of parens
// or second parameter are removed
foo!(1, 2)();
}
--
More information about the Digitalmars-d-bugs
mailing list