On Fri, Jan 29, 2016 at 08:41:18PM +0100, Jakub Jelinek wrote:
> Hi!
> 
> We ICE on the following testcase, because the C FE abuses TYPE_VFIELD
> for its FE stuff, but may leak it to the middle-end.
> We clear it for TYPE_MAIN_VARIANT (and only use it for that), but
> for the other variants it could be non-NULL, because build_variant_type*
> would just copy that field over.
> 
> Fixed by clearing it on all the variant types.
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> 
> 2016-01-29  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR debug/69518
>       * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
>       all type variants, not just TYPE_MAIN_VARIANT.
> 
>       * gcc.dg/torture/pr69518.c: New test.

Ok.

        Marek

Reply via email to