Fix PR c++/70332 (ICE due to aggregate initialization of NSDMI)
authorPatrick Palka <ppalka@gcc.gnu.org>
Wed, 23 Mar 2016 21:02:34 +0000 (21:02 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Wed, 23 Mar 2016 21:02:34 +0000 (21:02 +0000)
commitcd1588c4d60162730a103b6ca3a30139d88a57e3
tree14bfa7e79e1654780fbe7af110d52eca7878e111
parent80636611f3a1490d8164509f1b206d009d153b61
Fix PR c++/70332 (ICE due to aggregate initialization of NSDMI)

gcc/cp/ChangeLog:

PR c++/70332
* pt.c (tsubst_copy) [PARM_DECL]: Handle the use of 'this' in an
NSDMI that's part of an aggregrate initialization.

gcc/testsuite/ChangeLog:

PR c++/70332
* g++.dg/cpp1y/nsdmi-aggr5.C: New test.

From-SVN: r234442
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr5.C [new file with mode: 0644]