D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7463 - Duplicated error message with bad template value parameter
Summary: Duplicated error message with bad template value parameter
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: No Owner
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2012-02-08 06:49 UTC by Don
Modified: 2015-06-09 05:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2012-02-08 06:49:18 UTC
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 2 github-bugzilla 2012-02-17 23:02:02 UTC
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