This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11393] Initializer of static const float class member is not legal in c++98
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Oct 2012 00:02:09 +0000
- Subject: [Bug c++/11393] Initializer of static const float class member is not legal in c++98
- Auto-submitted: auto-generated
- References: <bug-11393-4@http.gcc.gnu.org/bugzilla/>
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)