GCC Bugzilla – Bug 1330
Forward initializer references not checked
Last modified: 2007-01-09 20:43:18 UTC
The following code is illegal because initializers are
are supposed to run in declared order and arn't allowed to
forward reference each other. gcj does not detect this
static int foo = bar;
static int bar = 5;
Compile the test case.
From: Dara Hazeghi <firstname.lastname@example.org>
To: email@example.com, firstname.lastname@example.org, email@example.com
Subject: Re: java/1330: Forward initializer references not checked
Date: Sun, 11 May 2003 20:07:43 -0700
this bug was reported against (I presume) pre gcc 3.0 sources. Would it
be possible to determine if this problem is still present in current
It still is a problem in the mainline (20030524).
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.