diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-05-05 19:48:26 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-05-05 19:48:26 +0000 |
commit | b207220873a208cab0b8fea85bf5be77bcd15914 (patch) | |
tree | aa813b8ac6a159a2f481000fe49a20f3087a69d1 /gcc/objc | |
parent | edd54d25ada0f8674c1fd57158aaf4c169aed304 (diff) | |
download | gcc-b207220873a208cab0b8fea85bf5be77bcd15914.zip gcc-b207220873a208cab0b8fea85bf5be77bcd15914.tar.gz gcc-b207220873a208cab0b8fea85bf5be77bcd15914.tar.bz2 |
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
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 67ccd3b..2953216 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -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 diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index a90c061..7ed00ae 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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) |