[Bug c++/28250] [4.2 regression] ICE with invalid catch
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 17 04:42:00 GMT 2006
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-07-17 04:42 -------
Subject: Bug 28250
Author: reichelt
Date: Mon Jul 17 04:42:24 2006
New Revision: 115516
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115516
Log:
PR c++/28250
* name-lookup.c (pushdecl_maybe_friend): Return early on
error_mark_node.
* except.c (expand_start_catch_block): Use error_mark_node instead
of NULL_TREE for invalid decls.
* parser.c (cp_parser_exception_declaration): Return error_mark_node
on invalid catch parameter. Simplify.
* g++.dg/eh/catch1.C: New test.
* g++.dg/eh/catch2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/eh/catch1.C
trunk/gcc/testsuite/g++.dg/eh/catch2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/except.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250
More information about the Gcc-bugs
mailing list