[Bug c++/22256] diagnostic shows wrong type for cast operator
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Thu Jun 30 21:48:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list