re PR c++/50614 ([C++0x] ICE: tree check: expected field_decl, have…
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
Showing
gcc/testsuite/g++.dg/cpp0x/nsdmi-template2.C
0 → 100644
Please
register
or
sign in
to comment