Re: [PATCH] Fix PR c/35445: ICE with conflicting declarations

2011-05-02 Thread Joseph S. Myers
On Mon, 2 May 2011, Simon Martin wrote: 2011-05-01 Simon Martin simar...@users.sourceforge.net PR c/35445 * c-decl.c (finish_decl): Only create a composite if the types are compatible. 2011-05-01 Simon Martin simar...@users.sourceforge.net PR c/35445 *

[PATCH] Fix PR c/35445: ICE with conflicting declarations

2011-05-01 Thread Simon Martin
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