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++/11393] Initializer of static const float class member is not legal in c++98


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

--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-26 00:02:09 UTC ---
(In reply to comment #21)
> In my opinion, floating point literals are allowed in constant expressions in
> the C++11 standard.

They're only valid with 'constexpr' which isn't used in the testcases in this
PR  (and can't be in C++98)


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