re PR objc/27240 (ICE with invalid fields)

PR objc/27240
	* objc-act.c (objc_is_public): Return early on invalid type.

	* objc.dg/member-1.m: New test.

From-SVN: r113559
This commit is contained in:
Volker Reichelt 2006-05-05 19:48:26 +00:00 committed by Volker Reichelt
parent edd54d25ad
commit b207220873
4 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR objc/27240
* objc-act.c (objc_is_public): Return early on invalid type.
2006-03-02 Fariborz Jahanian <fjahanian@apple.com>
* objc-act.c (init_module_descriptor): Remove file name from

View File

@ -7168,6 +7168,9 @@ objc_is_public (tree expr, tree identifier)
return 1;
#endif
if (TREE_TYPE (expr) == error_mark_node)
return 1;
basetype = TYPE_MAIN_VARIANT (TREE_TYPE (expr));
if (basetype && TREE_CODE (basetype) == RECORD_TYPE)

View File

@ -1,3 +1,8 @@
2006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR objc/27240
* objc.dg/member-1.m: New test.
2006-05-05 Steve Ellcey <sje@cup.hp.com>
* gfortran.dg/large_real_kind_form_io_2.f90: Use nearest.

View File

@ -0,0 +1,5 @@
void foo()
{
struct A a; /* { dg-error "storage size" } */
a.i;
}