This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13178] Bogus C++ error message referring to operator 1
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2004 01:37:09 -0000
- Subject: [Bug c++/13178] Bogus C++ error message referring to operator 1
- References: <20031124181040.13178.ian@airs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-01-16 01:37 -------
More reduced testcase:
----------------------------------------
class C
{
template<typename U>
operator U();
};
int fn (C c)
{
return C::operator float(c);
}
----------------------------------------
pr13178.cc:9: error: no matching function for call to `C::operator 1(C&)'
Looks like a pretty printing issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13178