This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33876] in-class initialization of const static data members and template functions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2007 23:20:23 -0000
- Subject: [Bug c++/33876] in-class initialization of const static data members and template functions
- References: <bug-33876-15253@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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