------- 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
