Bug 7463 – Duplicated error message with bad template value parameter
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-08T06:49:00Z
Last change time
2015-06-09T05:11:49Z
Keywords
diagnostic
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2012-02-08T06:49:18Z
template foo(Undefined x) {}
gives duplicate errors.
Caused by TemplateValueParameter::semantic() in template.c
(The simple solution of leaving that function if sparam->type == Type::terror
doesn't quite work because it causes failures in xtest46 for bug 6295).