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


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