mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 17:21:03 +08:00
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:
parent
edd54d25ad
commit
b207220873
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
5
gcc/testsuite/objc.dg/member-1.m
Normal file
5
gcc/testsuite/objc.dg/member-1.m
Normal file
@ -0,0 +1,5 @@
|
||||
void foo()
|
||||
{
|
||||
struct A a; /* { dg-error "storage size" } */
|
||||
a.i;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user