--- Comment #6 from pcarlini at suse dot de 2007-08-06 11:52 ---
The subtle issue here is that this specific error message should be emitted
*only* when the incorrectly specified return type doesn't match, thus a plain
error instead of a pedwarn:
case sfk_conversion:
if (type
--
What|Removed |Added
Severity|normal |enhancement
Keywords||diagnostic
Known to fail|
--- Additional Comments From gdr at integrable-solutions dot net
2005-06-30 20:56 ---
Subject: Re: diagnostic shows wrong type
bangerth at dealii dot org [EMAIL PROTECTED] writes:
| Confirmed. Also happens with 3.3.x.
I think this happens because when the C++ front-end finds that a
--- 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
igodard at pacbell dot net [EMAIL PROTECTED] 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
--- 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 [EMAIL PROTECTED] writes:
| Gabriel: no, it also happens with any pointer:
|
| struct node { float*