re PR c++/20212 (attribute unused vs. member function template)
authorMark Mitchell <mark@codesourcery.com>
Wed, 6 Apr 2005 15:55:00 +0000 (15:55 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 6 Apr 2005 15:55:00 +0000 (15:55 +0000)
commitb17bba6d2418e39417d204a8e1a7998077a185d7
treefcd2fbe70a5a93fad69ed7c5e1225fc6d4b544f8
parent20bc438ce92474b44e45d2d2b2d14c04da412316
re PR c++/20212 (attribute unused vs. member function template)

PR c++/20212
* pt.c (regenerate_decl_from_template): Copy attributes for
parameters from the pattern to the instantiation.

PR c++/20212
* g++.dg/warn/Wunused-11.C: New test.

From-SVN: r97726
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-11.C [new file with mode: 0644]