[Bug c++/92951] extern variable declaration doesn't behave properly for me
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 16 08:39:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92951
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Is the printf before or after main?
If before, then the problem is the order of variables initialized from
different translational units is unspecified and therefore undefined.
If after, then maybe something is changing them.
More information about the Gcc-bugs
mailing list