https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69974
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Mar 1 18:27:21 2016 New Revision: 233861 URL: https://gcc.gnu.org/viewcvs?rev=233861&root=gcc&view=rev Log: PR c/69796 PR c/69974 * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE of incomplete decls to error_mark_node. * gcc.dg/pr69796.c: New test. * gcc.dg/pr69974.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr69796.c trunk/gcc/testsuite/gcc.dg/pr69974.c Modified: trunk/gcc/c/ChangeLog trunk/gcc/c/c-parser.c trunk/gcc/testsuite/ChangeLog