2004-12-10 Ziemowit Laski <zlaski@apple.com>
* c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
pointer field is set before dereferencing it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92007
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-12-10 Ziemowit Laski <zlaski@apple.com>
+
+ * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
+ pointer field is set before dereferencing it.
+
2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/18903
find the element. Otherwise, do a linear search. TYPE_LANG_SPECIFIC
will always be set for structures which have many elements. */
- if (TYPE_LANG_SPECIFIC (type))
+ if (TYPE_LANG_SPECIFIC (type) && TYPE_LANG_SPECIFIC (type)->s)
{
int bot, top, half;
tree *field_array = &TYPE_LANG_SPECIFIC (type)->s->elts[0];