This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26818] [4.1/4.2 Regression] tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in finish_struct, at c-decl.c:5350 (time.c)
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2006 12:21:05 -0000
- Subject: [Bug c/26818] [4.1/4.2 Regression] tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in finish_struct, at c-decl.c:5350 (time.c)
- References: <bug-26818-8581@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-05-22 12:21 -------
Subject: Bug 26818
Author: reichelt
Date: Mon May 22 12:20:41 2006
New Revision: 113975
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113975
Log:
PR c/26818
* c-decl.c (finish_struct): Skip erroneous fields.
* gcc.dg/struct-incompl-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/struct-incompl-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26818