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))