re PR c++/84705 (internal compiler error: in add_stmt, at cp/semantics.c:390)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 17 Oct 2018 07:32:15 +0000 (07:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 17 Oct 2018 07:32:15 +0000 (07:32 +0000)
commit2be9999874fb71cd01519f096e5036a9959a603e
treeb9c4db39e51a05003c258d01b753f08236b89b55
parentece66526512d269375035e4413bb95d15a68ff3a
re PR c++/84705 (internal compiler error: in add_stmt, at cp/semantics.c:390)

/cp
2018-10-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84705
* init.c (build_cplus_new): Avoid duplicate diagnostic about
incomplete type, early return error_mark_node if the second
argument is error_mark_node.

/testsuite
2018-10-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84705
* g++.dg/cpp0x/pr84705.C: New.

From-SVN: r265233
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr84705.C [new file with mode: 0644]