This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58724] doc: use of attributes for namespace is not clear
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Oct 2013 15:54:46 +0000
- Subject: [Bug c++/58724] doc: use of attributes for namespace is not clear
- Auto-submitted: auto-generated
- References: <bug-58724-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58724
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-10-14
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In mainline (I don't think this can be fixed in 4.8.x), it seems to me that the
below may be all there is to the issue (for more about TREE_PURPOSE vs
get_attribute_name, see PR58600).
Can you test it on your code?
////////////////
Index: name-lookup.c
===================================================================
--- name-lookup.c (revision 203517)
+++ name-lookup.c (working copy)
@@ -3571,7 +3571,7 @@
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))