This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in type in error message.
- To: carlo at alinoe dot com
- Subject: Re: Bug in type in error message.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 8 Mar 2000 08:49:41 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <20000306231500.A8852@a2000.nl>
> Moreover, I feel this should compile anyway - but that is another story ;)
On that story: No, it shouldn't. For dummy<0>,dummy<0>, the call is
indeed ambiguous; neither is dummy<0>,dummy<n> more special that
dummy<n>,dummy<0>, nor vice versa.
Adding
double ch(dummy<0>, dummy<0>)
{
return 1;
}
to your program makes it compile.
Regards,
Martin