On Mon, 2 May 2011, Simon Martin wrote:
> 2011-05-01 Simon Martin
>
> PR c/35445
> * c-decl.c (finish_decl): Only create a composite if the types are
> compatible.
>
> 2011-05-01 Simon Martin
>
> PR c/35445
> * gcc.dg/pr35445.c: New test.
OK.
--
Joseph S. Myers
jos.
Hello,
The following invalid snippet triggers an ICE since 4.0.1:
extern int i;
extern int i;
int i[] = { 0 };
The problem is that 'finish_decl' ends up calling 'composite_type' with
incompatible types when updating the type of the declaration of 'i'
already encountered.
The attac