re PR c++/84972 (ICE: tree check: expected class 'type', have 'exceptional' (error_ma...
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 21 Mar 2018 21:19:03 +0000 (21:19 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 21 Mar 2018 21:19:03 +0000 (21:19 +0000)
commite299d4fc1a9a3d30ed9c1b7df743b2fd84c9f03a
tree885d9693effd9c18af41344bf508d50f4c512c59
parent482768bd6b85a5e7b7cf8a208e8a9c50bda052e1
re PR c++/84972 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in extended_tree, at tree.h:5545)

/cp
2018-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84972
* decl.c (maybe_deduce_size_from_array_init): Set TREE_TYPE to
error_mark_node when check_array_designated_initializer fails.

/testsuite
2018-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84972
* g++.dg/ext/desig10.C: New.

From-SVN: r258746
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/desig10.C [new file with mode: 0644]