[Issue 2026] Misleading error message when passing non-existent symbol to template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 10 05:50:04 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2026
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |yebblies at gmail.com
Resolution| |FIXED
--- Comment #2 from yebblies <yebblies at gmail.com> 2011-06-10 05:45:28 PDT ---
The test case now prints:
testx.d(7): Error: undefined identifier SortStrategy.stable
testx.d(7): Error: template std.algorithm.sort(alias less = "a <
b",SwapStrategy
ss = SwapStrategy.unstable,Range) does not match any function template
declarat
ion
testx.d(7): Error: template std.algorithm.sort(alias less = "a <
b",SwapStrategy
ss = SwapStrategy.unstable,Range) cannot deduce template function from
argument
types !("a < b",_error_)(string[])
testx.d(7): Error: template instance errors instantiating template
(dmd 2.053)
Which correctly identifies the cause of the error.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list