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: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2005 22:11:33 -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 gdr at integrable-solutions dot net 2005-06-30 22:11 -------
Subject: Re: diagnostic shows wrong type for cast operator
"igodard at pacbell dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| 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'
Alright, that was a wrong guess.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22256