This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65228] ICE: expected tree that contains âdecl minimalâ structure, have âerror_markâ in start_decl
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Feb 2015 12:19:28 +0000
- Subject: [Bug c/65228] ICE: expected tree that contains âdecl minimalâ structure, have âerror_markâ in start_decl
- Auto-submitted: auto-generated
- References: <bug-65228-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65228
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Feb 27 12:18:57 2015
New Revision: 221056
URL: https://gcc.gnu.org/viewcvs?rev=221056&root=gcc&view=rev
Log:
PR c/65228
* c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
* gcc.dg/pr65228.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr65228.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog