[Issue 13982] D1: wrong template instantiation is not rejected
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jan 16 14:31:37 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13982
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
When I run it with dmd1:
-----
C:\cbx\mars1>dmd foo
DMD v1.077 DEBUG
Enabled -v2 hints:
foo.d(5): Error: template foo.temp2(T) does not match any function template
declaration
foo.d(5): Error: template foo.temp2(T) cannot deduce template function from
argument types !()(char[],int)
foo.d(21): Error: template instance foo.temp1!(int) error instantiating
-----
Something is different between our versions of dmd1.
--
More information about the Digitalmars-d-bugs
mailing list