pt.c (instantiate_class_template_1): If DECL_PRESERVE_P is set on a member function...
authorJason Merrill <jason@redhat.com>
Tue, 16 Aug 2011 23:25:52 +0000 (19:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 16 Aug 2011 23:25:52 +0000 (19:25 -0400)
commit4951efb6c95bd58056dae36cea2b9a89a3983ecd
treeb8b069b2bb944d9161a0ef3d7864da6dc6f40a9b
parent098416302ba1d50a7f183e8643a2563a255b744a
pt.c (instantiate_class_template_1): If DECL_PRESERVE_P is set on a member function or static data member...

* pt.c (instantiate_class_template_1): If DECL_PRESERVE_P is set
on a member function or static data member, call mark_used.

From-SVN: r177811
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attr-used-1.C [new file with mode: 0644]