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: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2003 16:47:27 -0000
- Subject: [Bug c++/11393] Initializer of static const float class member is not legal in c++98
- References: <20030701172459.11393.rearnsha@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11393
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-02 16:47 -------
Subject: Re: Initializer of static const float class member is not legal in c++98
From <http://gcc.gnu.org/onlinedocs/gcc/Standards.html>:
To select this standard in GCC, use one of the options -ansi, -std=c89
or -std=iso9899:1990; to obtain all the diagnostics required by the
standard, you should also specify -pedantic (or -pedantic-errors if you
want them to be errors rather than warnings). See Options Controlling
C Dialect
Thanks,
Andrew Pinski
On Wednesday, Jul 2, 2003, at 12:43 US/Eastern, rearnsha at gcc dot gnu
dot org wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT*
> gcc-bugs@gcc.gnu.org.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11393
>
>
>
> ------- Additional Comments From rearnsha at gcc dot gnu dot org
> 2003-07-02 16:43 -------
> So why doesn't -std=c++98 generate such a warning. I still consider
> failure to do that a bug. If I wanted GNU extensions I wouldn't be
> using -std.
>
>