This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32470] [4.2/4.3 regression] fvisibility=hidden without effect in some cases
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2007 08:48:42 -0000
- Subject: [Bug c++/32470] [4.2/4.3 regression] fvisibility=hidden without effect in some cases
- References: <bug-32470-14745@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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