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: "rnewman at compubrite dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Oct 2012 23:48:49 +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 #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.