[Bug c++/71516] [5/6/7 Regression] ICE on invalid C++ code (invalid use of forward declared type) on x86_64-linux-gnu: Segmentation fault (program cc1plus)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 14 14:48:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71516
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jun 14 14:47:17 2016
New Revision: 237450
URL: https://gcc.gnu.org/viewcvs?rev=237450&root=gcc&view=rev
Log:
PR c++/71516
* decl.c (complete_vars): Handle gracefully type == error_mark_node.
* g++.dg/init/pr71516.C: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/init/pr71516.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/decl.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list