[Bug c++/11393] Initializer of static const float class member is not legal in c++98

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 18 17:38:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-18 17:38 -------
This is a documented deprecated feature:
http://gcc.gnu.org/onlinedocs/gcc/Deprecated-Features.html#Deprecated-Features
G++ allows static data members of const floating-point type to be declared with an initializer in a class 
definition. The standard only allows initializers for static members of const integral types and const 
enumeration types so this extension has been deprecated and will be removed from a future version.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11393



More information about the Gcc-bugs mailing list