This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17408] [4.0 regression] ICE in verify_stmts with -O2
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2004 21:38:54 -0000
- Subject: [Bug c/17408] [4.0 regression] ICE in verify_stmts with -O2
- References: <20040910211053.17408.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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