This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11633] g++ does not initialize structures when auto-increment variables are used
- From: "msimons at simons-clan dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2003 22:10:56 -0000
- Subject: [Bug c++/11633] g++ does not initialize structures when auto-increment variables are used
- References: <20030722205341.11633.msimons@simons-clan.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11633
------- Additional Comments From msimons at simons-clan dot com 2003-07-22 22:10 -------
static int zap[] = { ++count-1, ++count-1, ++count-1 };
static int baz[] = { ++count-1, ++count-1, ++count-1 };
===
Changing the code to the above... works around this problem in this sample.