This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10618] Error message for function declarations with invalid return type could be improved
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2004 10:56:17 -0000
- Subject: [Bug c++/10618] Error message for function declarations with invalid return type could be improved
- References: <20030504101600.10618.giovannibajo@libero.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-08-16 10:56 -------
An easier example is also:
----------------------------------------
ostream& operator<<(ostream& os, const CVector& x);
----------------------------------------
which gives a generic parse error before '&', but should really emit two
distinct error messages about 'ostream? and 'CVector' being undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10618