[Bug c++/33569] A bug in inlining static const members.
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Thu Sep 27 10:10:00 GMT 2007
------- Comment #1 from pcarlini at suse dot de 2007-09-27 10:10 -------
Indeed, in general you have to add:
const int A::anInt;
At high optimization levels the the static int is "inlined" but this is just
implementation defined behavior...
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33569
More information about the Gcc-bugs
mailing list