[C PATCH] Fix ICE-on-invalid with enum forward declaration (PR c/70851)
Bernd Schmidt
bschmidt@redhat.com
Mon May 2 10:42:00 GMT 2016
On 05/02/2016 12:27 PM, Marek Polacek wrote:
> Here, the problem was that we weren't diagnosing invalid code when an array
> dimension was of incomplete enum type. That led to an ICE in gimplifier.
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2016-05-02 Marek Polacek <polacek@redhat.com>
>
> PR c/70851
> * c-decl.c (grokdeclarator): Diagnose when array's size has an
> incomplete type.
>
> * gcc.dg/enum-incomplete-3.c: New test.
Ok.
Bernd
More information about the Gcc-patches
mailing list