summaryrefslogtreecommitdiff
path: root/gcc/cp/name-lookup.c
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-05 15:22:36 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-05 15:22:36 +0000
commit74b09c9bdf8a63935ef86e082516346be0d2391c (patch)
tree466135e745930151a8d682369297d991fd462955 /gcc/cp/name-lookup.c
parentf34e160bcbe3294f20a6b63688e79f8c1139c242 (diff)
downloadgcc-74b09c9bdf8a63935ef86e082516346be0d2391c.tar.gz
2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58724 * doc/extend.texi [visibility ("visibility_type")]: Add example about visibility attribute on namespace declaration. /cp 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58724 * name-lookup.c (handle_namespace_attrs): Use get_attribute_name. /testsuite 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58724 * g++.dg/cpp0x/gen-attrs-56.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r--gcc/cp/name-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 025a03cd9fa..ced596e310a 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -3571,7 +3571,7 @@ handle_namespace_attrs (tree ns, tree attributes)
for (d = attributes; d; d = TREE_CHAIN (d))
{
- tree name = TREE_PURPOSE (d);
+ tree name = get_attribute_name (d);
tree args = TREE_VALUE (d);
if (is_attribute_p ("visibility", name))