This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in template parameter type deduction
- To: gawrilow at math dot TU-Berlin dot DE
- Subject: Re: Bug in template parameter type deduction
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 29 Mar 2000 21:56:35 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <14561.62065.615662.975682@sokol.math.TU-Berlin.DE>
> This bug report might be related to another one posted by me a
> couple of weeks ago; however, I've decided to send it for the sake
> of completeness. The gcc version in test was 2.95.2.
Thanks for your bug report. Can you please explain in more detail why
you think this is a bug in the compiler? I'd argue that it is a bug in
your program. In short, both templates give an exact match for the
function argument, so partial ordering is used. Since partial ordering
cannot deduce the Property parameter, neither function is more
specialized than the other.
If you question this line of reasoning, please discuss it in one of
the public C++ fora first, eg. comp.lang.c++.moderated, or
comp.std.c++.
Regards,
Martin