This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: the standard of c++ supported by gcc
Phil Edwards wrote:-
> On Wed, Sep 18, 2002 at 10:49:47AM +0800, luda_s wrote:
> > Dear gcc fellows:
> > I want to know the standard of c++ supported by gcc,does gcc support ISO98 compeletely ?
>
> Not completely. No compiler supports it completely yet.
EDG claim they do, though their preprocessor is non-conforming in
quite a few pedantic ways I've found. e.g. it fails on
#define f(x, y) y
#define g f(
f(g, 2)
claiming an unterminated macro invocation. However, since x does
not appear in f's expansion, it should not be pre-expanded, and
the code is legal.
Others include "#if##" ICE-ing, and trigraphs not being replaced in
the message of a #error (and they also ignore escaped newlines
in #error).
8-)
Neil.