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: overloaded templated ostream-operator: gcc can't find the right one.


> 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


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