re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared type) on...
authorJakub Jelinek <jakub@redhat.com>
Tue, 14 Jun 2016 14:33:11 +0000 (16:33 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 14 Jun 2016 14:33:11 +0000 (16:33 +0200)
commitabe7f8287ef2a19f089b135dc3d0b1f666615485
tree438eb09457329145f448e1a8cb02bcfab95ec9e3
parentacfadf066def1f73e4cb0a7bc4cd368165302fa2
re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared type) on x86_64-linux-gnu: Segmentation fault (program cc1plus))

PR c++/71516
* decl.c (complete_vars): Handle gracefully type == error_mark_node.

* g++.dg/init/pr71516.C: New test.

From-SVN: r237445
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/pr71516.C [new file with mode: 0644]