This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11866] poor diagnostic on undeclared exception
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2003 12:48:26 -0000
- Subject: [Bug c++/11866] poor diagnostic on undeclared exception
- References: <20030809121136.11866.Rob_Davies@NTLworld.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11866
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-09 12:48 -------
The mainline produces:
pr11866.cc: In function `int main()':
pr11866.cc:10: error: expected type-name
pr11866.cc:10: error: expected type-name
pr11866.cc:10: error: invalid catch parameter
pr11866.cc:10: error: `...' handler must be the last handler for its try block
which might be okay (but what is a type-name?, I know what it is but it is overused in the
mainline's error messages.)