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).
Comment #1 by bugzilla — 2012-02-17T22:59:58Z
Comment #2 by github-bugzilla — 2012-02-17T23:02:02Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/113d2a0858fe701f120fd00522411a4c42a55ad2 fix Issue 7463 - Duplicated error message with bad template value parameter