]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/39560 (Erroneous warnings 'unused variable' in a templated class method...
authorJason Merrill <jason@redhat.com>
Thu, 12 Nov 2009 23:21:33 +0000 (18:21 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 12 Nov 2009 23:21:33 +0000 (18:21 -0500)
commitf208b768866fc84c28cf03e95d7c5d239a9d213e
treed8998b920c0b798056bed97bf686d0be44cbb70a
parent3a2f6fac4d33120980e119665b7825ce23e30ce5
re PR c++/39560 (Erroneous warnings 'unused variable' in a templated class method with union)

PR c++/39560
* decl2.c (build_anon_union_vars): Set DECL_ARTIFICIAL.

From-SVN: r154133
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/anon7.C [new file with mode: 0644]