OSDN Git Service

PR c++/13764
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2005 16:04:25 +0000 (16:04 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2005 16:04:25 +0000 (16:04 +0000)
commitbc2b76e0ab76f7e34071e916b32c08da70b283aa
tree3bb0430180145c4c46eccc4eb0371b0a2aeead17
parent20743c8aa7b65f7839c71bf4cb88959f739eb57a
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104698 138bc75d-0d04-0410-961f-82ee72b054a4
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]