PR c++/58624
commite506b2b996e569394f083f13129ddd680902ae2a
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Aug 2014 19:39:36 +0000 (26 19:39 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Aug 2014 19:39:36 +0000 (26 19:39 +0000)
tree8447e46f6e36b2d26eba2c8ce315826c9f73307a
parent2d650f54f0e40242a67c158538d935ce2e31ed67
PR c++/58624
* pt.c (tsubst_decl) [VAR_DECL]: Copy TLS model.
(tsubst_copy_and_build) [VAR_DECL]: Use TLS wrapper.
* semantics.c (finish_id_expression): Don't call TLS wrapper in a
template.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214543 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/tls/thread_local10.C [new file with mode: 0644]