Commit b2072208 by Volker Reichelt Committed by Volker Reichelt

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
parent edd54d25
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> 2006-03-02 Fariborz Jahanian <fjahanian@apple.com>
* objc-act.c (init_module_descriptor): Remove file name from * objc-act.c (init_module_descriptor): Remove file name from
......
...@@ -7168,6 +7168,9 @@ objc_is_public (tree expr, tree identifier) ...@@ -7168,6 +7168,9 @@ objc_is_public (tree expr, tree identifier)
return 1; return 1;
#endif #endif
if (TREE_TYPE (expr) == error_mark_node)
return 1;
basetype = TYPE_MAIN_VARIANT (TREE_TYPE (expr)); basetype = TYPE_MAIN_VARIANT (TREE_TYPE (expr));
if (basetype && TREE_CODE (basetype) == RECORD_TYPE) if (basetype && TREE_CODE (basetype) == RECORD_TYPE)
......
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> 2006-05-05 Steve Ellcey <sje@cup.hp.com>
* gfortran.dg/large_real_kind_form_io_2.f90: Use nearest. * gfortran.dg/large_real_kind_form_io_2.f90: Use nearest.
void foo()
{
struct A a; /* { dg-error "storage size" } */
a.i;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment