]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/26433 (Syntax error using __FUNCTION__ in catch handler)
authorMark Mitchell <mark@codesourcery.com>
Fri, 19 May 2006 16:04:22 +0000 (16:04 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 19 May 2006 16:04:22 +0000 (16:04 +0000)
commiteaf6fb906eb9e8807f068dd917a738523382bfe2
tree87a70819ab712edee728af13b2ec95fe70702bdf
parentaffaef6e07c544cef985d95e213b6942fe1988da
re PR c++/26433 (Syntax error using __FUNCTION__ in catch handler)

PR c++/26433
* cp-tree.h (begin_function_try_block): Change prototype.
(finish_function_handler_sequence): Likewise.
* parser.c (cp_parser_function_try_block): Adjust calls.
* pt.c (tsubst_expr): Adjust calls.
* semantics.c (begin_function_try_block): Create an artificial
outer scope.
(finish_function_handler_sequence): Close it.
PR c++/26433
* g++.dg/template/fntry1.C: New test.

From-SVN: r113911
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/fntry1.C [new file with mode: 0644]