This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Robustify TYPE_LANG_SPECIFIC condition check


Ziemowit Laski <zlaski@apple.com> writes:

> This is a consequence of ObjC now using TYPE_LANG_SPECIFIC to store its
> own information.  Turns out that lookup_field() assumes that
> TYPE_LANG_SPECIFIC
> assumes will always have its 's' field initialized, which is not true
> for ObjC structs.
> 
> OK for mainline?

This is OK.

> --Zem
> 
> [gcc/ChangeLog]
> 2004-12-09  Ziemowit Laski  <zlaski@apple.com>
> 
>          * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
>          pointer field is set before dereferencing it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]