[Bug c++/11393] New: Initializer of static const float class member is not legal in c++98
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Jul 4 11:10:00 GMT 2003
"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
More information about the Gcc-bugs
mailing list