This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59895] Updates to global variables not consistent across translation units when FLTO is enabled
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jan 2014 01:46:34 +0000
- Subject: [Bug c++/59895] Updates to global variables not consistent across translation units when FLTO is enabled
- Auto-submitted: auto-generated
- References: <bug-59895-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59895
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So in this case here, s1 is being initialized first and then globalvec gets
initialized which changes the size back to 0.