Bug in template parameter type deduction
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Wed Mar 29 12:05:00 GMT 2000
> 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
More information about the Gcc-bugs
mailing list