[Bug c/17408] [4.0 regression] ICE in verify_stmts with -O2

jsm at polyomino dot org dot uk gcc-bugzilla@gcc.gnu.org
Fri Sep 10 21:38:00 GMT 2004


------- Additional Comments From jsm at polyomino dot org dot uk  2004-09-10 21:38 -------
Subject: Re:  [4.0 regression] ICE in verify_stmts with -O2

On Fri, 10 Sep 2004, dalej at apple dot com wrote:

> I believe the following is the fix (it has the effect of adding && 
> !initialized to the existing test):

This passes gcc.dg/pr15360-1.c?  I thought both parts of the fix to bug 
15360 were needed to fix it, but this patch reverts one part.

static int x;
extern int x = 1;

is valid; you can't treat the second declaration as "int x = 1;" because

static int x;
int x = 1;

is invalid.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17408



More information about the Gcc-bugs mailing list