[Bug c++/13178] Bogus C++ error message referring to operator 1
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 24 18:27:00 GMT 2003
------- Additional Comments From bangerth at dealii dot org 2003-11-24 18:27 -------
Confirmed. The error message is not much worse than the one given previously
g/x> /home/bangerth/bin/gcc-3.3.2/bin/c++ -c x.cc
x.cc: In function `int fn(C<float>)':
x.cc:7: error: no matching function for call to `C<float>::operator t(C<float>&)'
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `int fn(C<float>)':
x.cc:7: error: no matching function for call to `C<float>::operator 1(C<float>&)'
So this should maybe not count as a regression. It's a bad message
in any case, worth fixing.
W.
PS: How did you get to write such code? Martin van Loewis once posted
a PR in which he showed that such function signatures are sometimes
even accepted by gcc, erroneously of course (this is PR 8856)...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13178
More information about the Gcc-bugs
mailing list