re PR c++/58583 ([c++11] ICE with invalid non-static data member initialization in...
authorNathan Sidwell <nathan@acm.org>
Tue, 16 Jun 2015 01:59:55 +0000 (01:59 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 16 Jun 2015 01:59:55 +0000 (01:59 +0000)
commit04eca83e064da161d8ee91d7ac701625f5f404a2
tree732badca01be7ddf1363610c4db6dd06853b9c15
parent4927b383fe3840cf912422b56603711a29e723c1
re PR c++/58583 ([c++11] ICE with invalid non-static data member initialization in template)

cp/
PR c++/58583
* cp-tree.h (DECL_INSTANTIATING_NSDMI_P): New.
* init.c (get_nsdmi): Check for DEFAULT_ARG in template case and
protect it from recursive instantiation.

testsuite/
PR c++/58583
* g++.dg/cpp0x/nsdmi-template14.C: New test.

From-SVN: r224502
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C [new file with mode: 0644]