This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/11393] New: Initializer of static const float class member is not legal in c++98
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 04 Jul 2003 13:06:49 +0200
- Subject: Re: [Bug c++/11393] New: Initializer of static const float class member is not legal in c++98
- Organization: Integrable Solutions
- References: <20030701172459.11393.rearnsha@gcc.gnu.org>
"rearnsha at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| 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
|
| Summary: Initializer of static const float class member is not
| legal in c++98
| Product: gcc
| Version: 3.4
| Status: UNCONFIRMED
| Keywords: accepts-invalid
| Severity: normal
| Priority: P2
| Component: c++
| AssignedTo: unassigned at gcc dot gnu dot org
| ReportedBy: rearnsha at gcc dot gnu dot org
| CC: gcc-bugs at gcc dot gnu dot org
| GCC build triplet: any
|
| The following code is not legal in c++ 98 (9.4.2 par 4) and should generate a
| diagnostic. As this is probably a gnu extension, it should probably only do
| this when -std=c++98.
I think that was even removed in 3.4, so we should definitely error
(or pedwarn) that construct.
-- Gaby