OSDN Git Service

PR c++/52759
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Mar 2012 15:05:42 +0000 (15:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Mar 2012 15:05:42 +0000 (15:05 +0000)
commit7602399032209be08d461426d91174bed800c35d
tree862c2ec860f966e519b8ffa35d62ae158bf5b92f
parent0fed282029b3347d720814b94e5c02647d977d81
PR c++/52759
* decl.c (start_decl): Don't call maybe_apply_pragma_weak
if processing_template_decl.

* g++.dg/ext/weak4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@185967 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/weak4.C [new file with mode: 0644]