]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/50614 ([C++0x] ICE: tree check: expected field_decl, have identifier_node...
authorJason Merrill <jason@redhat.com>
Thu, 13 Oct 2011 21:23:47 +0000 (17:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 13 Oct 2011 21:23:47 +0000 (17:23 -0400)
commit2598165f09a96f60aa53abebf931718a769b7cf2
tree6bfe09b345ceaed634c1718cf2d97aba8fa3b824
parent0e81aa85294d479dea3fb9b5a71e6f7242770af6
re PR c++/50614 ([C++0x] ICE: tree check: expected field_decl, have identifier_node in component_ref_field_offset, at expr.c:6697 with -fcompare-debug and a non-static initializer)

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.

From-SVN: r179945
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]