[Bug c++/33876] in-class initialization of const static data members and template functions
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 23 23:20:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-10-23 23:20 -------
And this is correct behavior. The C++ standard says they have to be declared
still, you just have a definition.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|in-class initialization of |in-class initialization of
|const static data members |const static data members
|and template functions |and template functions
|result in udefined |
|references |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33876
More information about the Gcc-bugs
mailing list