This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: overloaded templated ostream-operator: gcc can't find the right one.
- To: jma at cpk dot auc dot dk
- Subject: Re: overloaded templated ostream-operator: gcc can't find the right one.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 1 Mar 2000 20:32:13 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <38BD3AA2.E5CF1A2F@cpk.auc.dk>
> 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