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 #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.


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