[Bug c++/84221] [6/7/8 Regression] spurious -Wunused warning on a variable of a template type declared unused
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84221 --- Comment #3 from Jason Merrill --- Author: jason Date: Wed Apr 4 19:10:32 2018 New Revision: 259098 URL: https://gcc.gnu.org/viewcvs?rev=259098=gcc=rev Log: PR c++/84221 - bogus -Wunused with attribute and template. * decl2.c (is_late_template_attribute): Handle unused and used normally on non-TYPE_DECL. Added: trunk/gcc/testsuite/g++.dg/warn/Wunused-var-32.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl2.c
[Bug c++/84221] [6/7/8 Regression] spurious -Wunused warning on a variable of a template type declared unused
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84221 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2018-04-04 CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Ever confirmed|0 |1
[Bug c++/84221] [6/7/8 Regression] spurious -Wunused warning on a variable of a template type declared unused
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84221 Richard Biener changed: What|Removed |Added Priority|P3 |P2
[Bug c++/84221] [6/7/8 Regression] spurious -Wunused warning on a variable of a template type declared unused
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84221 Richard Biener changed: What|Removed |Added Target Milestone|--- |6.5
[Bug c++/84221] [6/7/8 Regression] spurious -Wunused warning on a variable of a template type declared unused
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84221 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=79667 --- Comment #2 from Martin Sebor --- See also bug 79667 for a problem with arrays of structs defined unused (that one affects both C and C++).