aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2017-06-18 00:55:02 -0400
committerJason Merrill <jason@gcc.gnu.org>2017-06-18 00:55:02 -0400
commit20ef9df1cffcae042e02d596724e69c24047c557 (patch)
tree7bb4cc9ae9eda8094137afe950a76789fe715c2b /gcc/cp/decl2.c
parent5ebcc5477a59dbe51c7e1130a2b751a2a1d89574 (diff)
downloadgcc-20ef9df1cffcae042e02d596724e69c24047c557.zip
gcc-20ef9df1cffcae042e02d596724e69c24047c557.tar.gz
gcc-20ef9df1cffcae042e02d596724e69c24047c557.tar.bz2
PR c++/60063 - -Wunused-local-typedefs and templates.
* decl2.c (is_late_template_attribute): Return false for "used". From-SVN: r249347
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 69cb40f..72239ec 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -1091,9 +1091,10 @@ is_late_template_attribute (tree attr, tree decl)
if (is_attribute_p ("weak", name))
return true;
- /* Attribute unused is applied directly, as it appertains to
+ /* Attributes used and unused are applied directly, as they appertain to
decls. */
- if (is_attribute_p ("unused", name))
+ if (is_attribute_p ("unused", name)
+ || is_attribute_p ("used", name))
return false;
/* Attribute tls_model wants to modify the symtab. */