re PR c/65228 (ICE: expected tree that contains ‘decl minimal’ structure, have ‘error...
authorMarek Polacek <polacek@redhat.com>
Fri, 27 Feb 2015 12:18:57 +0000 (12:18 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 27 Feb 2015 12:18:57 +0000 (12:18 +0000)
commite5165b604cb5af9ea1478b37194c1398204f61e3
tree9c0c725875a7c75f07fc45e1b243484797cf2c45
parenta2a5609b4bac11a8dec713f42cd39193d4336a74
re PR c/65228 (ICE: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in start_decl)

PR c/65228
* c-decl.c (start_decl): Return NULL_TREE if decl is an error node.

* gcc.dg/pr65228.c: New test.

From-SVN: r221056
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr65228.c [new file with mode: 0644]