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: "manu 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 02:04:38 +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 #27 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-26 02:04:38 UTC ---
And for similar reasons, it seems wrong to reject "b" with a permerror: The
code is accepted in c++98 as an extension, so it could be equally accepted in
c++11 as an extension, and warned by -pedantic. No need to force users to use
constexpr or the hammer of -fpermissive for something that works in c++98.
Again, this is what clang does, which makes perfect sense to me.
So, I still see two bugs.