From 20ef9df1cffcae042e02d596724e69c24047c557 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sun, 18 Jun 2017 00:55:02 -0400 Subject: PR c++/60063 - -Wunused-local-typedefs and templates. * decl2.c (is_late_template_attribute): Return false for "used". From-SVN: r249347 --- gcc/cp/decl2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/cp/decl2.c') 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. */ -- cgit v1.1