overloaded templated ostream-operator: gcc can't find the right one.

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Wed Mar 1 11:39:00 GMT 2000


> I think I found a bug. To illustrate it I made the attached example.
> With more than one templated overloaded ostream operator, gcc has
> trouble finding the right one. It fails to convert a non-const argument
> to a const arg. when the function is called. Instead it tries to match
> the call to the wrong function.

Thanks for your bug report. I fail to see the bug, though. Please have
a look at the section "Reporting Bugs" in the gcc manual. What did you
expect to happen, what did actually happen on your system, and why do
you think this is wrong? E.g. in above report, which is the wrong
function, and how do you know it tries to match it?

Regards,
Martin



More information about the Gcc-bugs mailing list