re PR c++/80095 (ICE with this pointer in NSDMI)
authorMarek Polacek <polacek@redhat.com>
Fri, 7 Apr 2017 18:09:55 +0000 (18:09 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 7 Apr 2017 18:09:55 +0000 (18:09 +0000)
commit2166aeb3abcbfaba9beffd4a8a0923d27d551f6c
tree5e6e09cee58eb9f9d7eacc47fb47f9ffd755b985
parent1ef532f452a10223cf9cd8f6955f066149d78498
re PR c++/80095 (ICE with this pointer in NSDMI)

PR c++/80095
* call.c (build_over_call): Don't check cxx_dialect.
* cp-gimplify.c (cp_gimplify_init_expr): Don't check cxx_dialect nor
whether SUB is a CONSTRUCTOR.
* init.c (build_new_1): Don't check cxx_dialect.
* tree.c (replace_placeholders): Add a function comment.  Return if
not in C++14, or if the object isn't a (member of a) class.
* typeck2.c (store_init_value): Don't check cxx_dialect nor whether
TYPE is CLASS_TYPE_P.

* g++.dg/cpp1y/nsdmi-aggr8.C: New test.

From-SVN: r246772
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-gimplify.c
gcc/cp/init.c
gcc/cp/tree.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr8.C [new file with mode: 0644]