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

rnewman at compubrite dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 25 23:49:00 GMT 2012


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

--- Comment #21 from Rich Newman <rnewman at compubrite dot com> 2012-10-25 23:48:49 UTC ---
(In reply to comment #20)

The EDG front-end also accepts the code fragment from comment 19 without any
diagnostic message at all.

In my opinion, floating point literals are allowed in constant expressions in
the C++11 standard.



More information about the Gcc-bugs mailing list