This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13657] New: Error message incorrectly describes return type as argument type
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2004 16:35:50 -0000
- Subject: [Bug c++/13657] New: Error message incorrectly describes return type as argument type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling this test case:
class C { public: int (*f())(); int bar(); };
int (*C::f())() { return C::bar; }
produces this error message:
foo3.cc: In member function `int (* C::f())()':
foo3.cc:2: error: argument of type `int (C::)()' does not match `int (*)()'
The error message is basically correct, but there is no `argument' here. The
error message should refer to the return type instead. It might suffice to
simply replace the word `argument' with the word `return'.
--
Summary: Error message incorrectly describes return type as
argument type
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13657