[Issue 1677] Segfault on specialization on template with one non-tuple and one tuple parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 9 13:30:36 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1677
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Status|NEW |RESOLVED
Keywords| |ice-on-invalid-code
Resolution| |WORKSFORME
------- Comment #1 from smjg at iname.com 2008-09-09 15:30 -------
Of course it's invalid. Temp!(float, float, char) (three arguments) doesn't
match Temp!(U, V) (two arguments).
But under DMD 1.033 and 1.035, it reports an error as expected.
bz1677.d(14): template instance foo!(Temp!(float,float,char)) does not match
any template declaration
bz1677.d(14): Error: template instance 'foo!(Temp!(float,float,char))' is not a
variable
bz1677.d(14): Error: function expected before (), not
foo!(Temp!(float,float,char)) of type int
--
More information about the Digitalmars-d-bugs
mailing list