This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21581] (optimisation) Functions in anonymous namespaces should default to "hidden" visibility
- 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: 21 Mar 2006 16:15:40 -0000
- Subject: [Bug c++/21581] (optimisation) Functions in anonymous namespaces should default to "hidden" visibility
- References: <bug-21581-4603@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from jason at gcc dot gnu dot org 2006-03-21 16:15 -------
Subject: Bug 21581
Author: jason
Date: Tue Mar 21 16:15:25 2006
New Revision: 112250
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112250
Log:
PR c++/21581
* parser.c (cp_parser_declaration): Support attributes on
anonymous namespaces.
* name-lookup.c (push_namespace_with_attribs): Anonymous
namespaces default to hidden visibility.
Added:
trunk/gcc/testsuite/g++.dg/ext/visibility/anon1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/parser.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21581