https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69217
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2016-01-11 Ever confirmed|0 |1 --- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > While I should get round to fixing the gimplify stage to conform, I think > the middle-end should do something other than SEGV when this happens. > > e.g: > > if (TYPE_FIELDS (type) == NULL_TREE > || DECL_CHAIN (TYPE_FIELDS (type)) == NULL_TREE) > return false; Yes, that's the correct thing to do, please test it and post the patch on the gcc-patches@ list once done.