This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug in template parameter type deduction


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]