This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51900] [4.6 Regression] const variable initialization always zero
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jan 2012 11:34:52 +0000
- Subject: [Bug target/51900] [4.6 Regression] const variable initialization always zero
- Auto-submitted: auto-generated
- References: <bug-51900-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51900
--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2012-01-19 11:34:52 UTC ---
I can reproduce with x86_64-w64-mingw32-gcc-4.6.2 on cygwin. Adding 'extern'
to the declaration in the .h file fixes it.