PR c++/84221 - bogus -Wunused with attribute and template.
commitf5a21ec3ec8a8d663650311b10e4c3a483aed7c1
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2018 19:10:32 +0000 (4 19:10 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2018 19:10:32 +0000 (4 19:10 +0000)
tree42f0b87c60b57eb3fc51541173e027b64922dfb7
parent08661f80efc229dd6d89a0754a44c7fe425d3e88
PR c++/84221 - bogus -Wunused with attribute and template.

* decl2.c (is_late_template_attribute): Handle unused and used
normally on non-TYPE_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259098 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/warn/Wunused-var-32.C [new file with mode: 0644]