This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14876] Incorrectly resolved variable scope in initializer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Apr 2004 13:15:45 -0000
- Subject: [Bug c/14876] Incorrectly resolved variable scope in initializer
- References: <20040407131045.14876.eckart@icd.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-07 13:15 -------
Actually the A in A+2 is the local A in the current scope, it is defined in the local scope before the equal
sign. Also on new versions of GCC, 3.4.0 which is not released yet, GCC will warn you that A is being
used uninitialized.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14876