OSDN Git Service

PR c++/50614
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Oct 2011 21:23:47 +0000 (21:23 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Oct 2011 21:23:47 +0000 (21:23 +0000)
commitbe59b76a423ebd84104b9be345fb1c98dfd6068d
tree6bfe09b345ceaed634c1718cf2d97aba8fa3b824
parent35f606eda1a53d7a186427e9de85bbace8ec1310
PR c++/50614
* cp-tree.h (VAR_TEMPL_TYPE_FIELD_OR_FUNCTION_DECL_CHECK): New.
(DECL_TEMPLATE_INFO): Use it.
* pt.c (tsubst_decl) [FIELD_DECL]: Set DECL_TEMPLATE_INFO
if the decl has an NSDMI.
* init.c (perform_member_init): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179945 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi-template2.C [new file with mode: 0644]