This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22256] diagnostic shows wrong type for cast operator
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2005 21:48:13 -0000
- Subject: [Bug c++/22256] diagnostic shows wrong type for cast operator
- References: <20050630163052.22256.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2005-06-30 21:48 -------
Gabriel: no, it also happens with any pointer:
struct node { float* operator float*(); };
gets you:
foo.cc:1: error: operator `float*' declared to return `float'
And similarly for other types including classes (not shown).
BTW, shouldn't the title be "diagnostic shows wrong type for conversion
function" ? I've never heard these called "cast operators".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22256