[Bug c++/13178] New: Bogus C++ error message referring to operator 1
ian at airs dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 24 18:10:00 GMT 2003
Compiling this test case
template<typename t>
class C
{
template<typename u> operator t() { return (u) this->i; }
int i;
};
int fn (C<float> c) { return C<float>::operator float<int>(c); }
using the compiler in the build tree
gcc/xgcc -Bgcc/ -c ~/foo3.cc
yields this bogus error message:
/home/ian/foo3.cc: In function `int fn(C<float>)':
/home/ian/foo3.cc:7: error: no matching function for call to `C<float>::operator
1(C<float>&)'
There is obviously no ``operator 1''. Admittedly this program is buggy, but the
error message should still be fixed.
--
Summary: Bogus C++ error message referring to operator 1
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13178
More information about the Gcc-bugs
mailing list