PR c++/32470
commit1fd77946b49f4ff86be3e862908a8ea10b413bcd
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Oct 2007 08:48:23 +0000 (4 08:48 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Oct 2007 08:48:23 +0000 (4 08:48 +0000)
treebae096b4fe2cf8e3db8b3a02fa456bfff47ef358
parentce2aba1ed882776f4d24f72838d3698f9ee38d67
    PR c++/32470
        * name-lookup.c (push_namespace_with_attrs): Fold back into...
        (push_namespace): Here.
        (handle_namespace_attrs): New fn for the attr code.
        (leave_scope): Don't pop_visibility.
        * name-lookup.h (struct cp_binding_level): Remove has_visibility.
        * parser.c (cp_parser_namespace_definition): Call
        handle_namespace_attrs and pop_visibility as appropriate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129003 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/testsuite/g++.dg/ext/visibility/namespace2.C [new file with mode: 0644]