re PR c++/32470 (fvisibility=hidden without effect in some cases)
authorJason Merrill <jason@redhat.com>
Thu, 4 Oct 2007 08:48:23 +0000 (04:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 4 Oct 2007 08:48:23 +0000 (04:48 -0400)
commit65567efaa82178fcfe63bee2c81f06a541cd72a4
treebae096b4fe2cf8e3db8b3a02fa456bfff47ef358
parentdcdc83a1857653c02c8997e5787c6a41244bdb95
re PR c++/32470 (fvisibility=hidden without effect in some cases)

        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.

From-SVN: r129003
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]