This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26433] [4.0/4.1/4.2 Regression] Syntax error using __FUNCTION__ in catch handler



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-05-19 16:04 -------
Subject: Bug 26433

Author: mmitchel
Date: Fri May 19 16:04:22 2006
New Revision: 113911

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113911
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/template/fntry1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26433


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]