PR c++/89532 - ICE with incomplete type in decltype.
authorMarek Polacek <polacek@redhat.com>
Fri, 1 Mar 2019 15:55:56 +0000 (15:55 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 1 Mar 2019 15:55:56 +0000 (15:55 +0000)
commitd724d2aff687414567caad50eda806a28480c771
tree0f3979606f9d8f7af1c9e4be853d58ed0719f489
parent337f1caed6378294b8fe97347dbb0a5e6651a71b
PR c++/89532 - ICE with incomplete type in decltype.

* semantics.c (finish_compound_literal): Return error_mark_node
if digest_init_flags returns error_mark_node.

* g++.dg/cpp2a/nontype-class14.C: New test.

From-SVN: r269317
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/nontype-class14.C [new file with mode: 0644]