This is the mail archive of the gcc@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]

Re: ISO C++ and C99 features


On Sun, 18 Jun 2000, Martin v. Loewis wrote:

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


<iostream> contains std::clog.

I do not have a copy of the C99 standard, but I seem to remember 
   c99 <complex.h> contains a clog() function (for complex
   logarithms). Is this a problem?

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



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