This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33876] in-class initialization of const static data members and template functions



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]