Bug 2230 – Compiler crashes on invalid code (revisited)

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-07-16T04:36:00Z
Last change time
2015-06-09T01:20:00Z
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2008-07-16T04:36:11Z
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)(); }
Comment #1 by samukha — 2008-07-16T06:32:18Z
Marking this a duplicate of 2229, as they seem to be the same bug. *** This bug has been marked as a duplicate of 2229 ***