------- Comment #8 from jason at gcc dot gnu dot org 2007-10-04 08:48 ------- Subject: Bug 32470
Author: jason Date: Thu Oct 4 08:48:23 2007 New Revision: 129003 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129003 Log: 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. Added: trunk/gcc/testsuite/g++.dg/ext/visibility/namespace2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/name-lookup.c trunk/gcc/cp/name-lookup.h trunk/gcc/cp/parser.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32470