[Bug c++/32470] [4.2 regression] fvisibility=hidden without effect in some cases
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 9 20:53:00 GMT 2007
------- Comment #11 from jason at gcc dot gnu dot org 2007-10-09 20:52 -------
Subject: Bug 32470
Author: jason
Date: Tue Oct 9 20:52:24 2007
New Revision: 129180
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129180
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.
PR c++/33094
* decl.c (make_rtl_for_nonlocal_decl): It's ok for a member
constant to not have DECL_EXTERNAL if it's file-local.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/ext/visibility/anon6.C
- copied unchanged from r128890,
trunk/gcc/testsuite/g++.dg/ext/visibility/anon6.C
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/ext/visibility/namespace2.C
- copied unchanged from r129003,
trunk/gcc/testsuite/g++.dg/ext/visibility/namespace2.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/decl.c
branches/gcc-4_2-branch/gcc/cp/name-lookup.c
branches/gcc-4_2-branch/gcc/cp/name-lookup.h
branches/gcc-4_2-branch/gcc/cp/parser.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32470
More information about the Gcc-bugs
mailing list