]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/13764 (c++ front-end creates extra blocks)
authorJason Merrill <jason@redhat.com>
Tue, 27 Sep 2005 16:04:25 +0000 (12:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Sep 2005 16:04:25 +0000 (12:04 -0400)
commit86ad3aa989805482427d241e03aa9fae6390d30d
tree3bb0430180145c4c46eccc4eb0371b0a2aeead17
parent8ec88e19de05f73576e780f06331a1906fefacc5
re PR c++/13764 (c++ front-end creates extra blocks)

        PR c++/13764
        * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
        * cp/cp-tree.h (FUNCTION_NEEDS_BODY_BLOCK): New macro.
        * cp/name-lookup.c (pushdecl_maybe_friend): Check it.
        * cp/decl.c (begin_function_body): Do nothing if it's false.
        (finish_function_body): Ditto.
        (outer_curly_brace_block): New fn.
        (finish_function): Use it.

From-SVN: r104698
gcc/ChangeLog
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/testsuite/g++.dg/tree-ssa/block1.C [new file with mode: 0644]