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


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


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