This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ISO C++ and C99 features
- To: nathan at codesourcery dot com
- Subject: Re: ISO C++ and C99 features
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 18 Jun 2000 17:52:59 +0200
- CC: gcc at gcc dot gnu dot org
- References: <39461116.2E0FCC23@codesourcery.com>
> I think it'll get worse, in that users will ask for more c99
> features to be available in C++.
I agree that g++ should support C99 features; and I'd expect this to
happen even in "default" mode. By default, g++ accepts "GNU C++", not
"Standard C++", and I think GNU C++ should be a superset of both
ISO C++ 98 and ISO C 99.
Of course, in pedantic mode, we should be exactly that: pedantic. I'm
not sure whether any of the C99 features affect -ansi, i.e. is there
any a program that would mean a different thing under C++98 and
C++98+C99?
> Note the number of bug reports we get about rejecting some C inside
> an extern "C" scope.
Which ones in particular? I always thought that users were really
misunderstanding extern "C", i.e. that it is really C++ inside -
sometimes users think that "class" should not be a keyword inside
extern "C", which I think it should - that has nothing to do with C99.
Just my 0.02EUR,
Martin