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

2007-10-23 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-10-24 00:29 --- Subject: Re: in-class initialization of const static data members and template functions > But then why the different bahaviour for Because the standard does not require a diagnostic for this invalid code. -- Pin

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

2007-10-23 Thread michael dot zillich at gmx dot net
--- Comment #2 from michael dot zillich at gmx dot net 2007-10-23 23:43 --- (In reply to comment #1) > And this is correct behavior. The C++ standard says they have to be declared > still, you just have a definition. Ok, got You. But then why the different bahaviour for a) optimizatio

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

2007-10-23 Thread pinskia 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 -