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++/32080] Can goto a function try-block


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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-24 14:47:12 UTC ---
Author: paolo
Date: Thu May 24 14:47:06 2012
New Revision: 187837

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187837
Log:
/cp
2012-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/32080
    * parser.c (cp_parser_ctor_initializer_opt_and_function_body,
    cp_parser_function_body): Add a bool parameter, true when parsing
    a function-try-block.
    (cp_parser_function_try_block): Pass true to the above.
    (cp_parser_function_definition_after_declarator,
    cp_parser_function_transaction): Adjust.

/testsuite
2012-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/32080
    * g++.dg/eh/goto2.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/eh/goto2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


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