7463 – Duplicated error message with bad template value parameter

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
Add an attachment (proposed patch, testcase, etc.)

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 1 Walter Bright 2012年02月17日 22:59:58 UTC
https://github.com/D-Programming-Language/dmd/pull/704 
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


AltStyle によって変換されたページ (->オリジナル) /