re PR c++/84663 (internal compiler error: tree check: expected array_type, have error...
authorMarek Polacek <polacek@redhat.com>
Fri, 2 Mar 2018 17:54:23 +0000 (17:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 2 Mar 2018 17:54:23 +0000 (17:54 +0000)
commit8c8f2ab7081d2e14b637c57583072392c3aeac88
tree1483aee8a3827ba1a12096ad301895230f0be44d
parent0805d020d789e40557531df22565eae7809e7f17
re PR c++/84663 (internal compiler error: tree check: expected array_type, have error_mark in cp_complete_array_type, at cp/decl.c:8334)

PR c++/84663
* decl.c (cp_complete_array_type): Check error_mark_node.

* g++.dg/parse/array-size3.C: New test.

From-SVN: r258148
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/array-size3.C [new file with mode: 0644]