c++/3385: -std=foo doesn't work with C++

Neil Booth neil@daikokuya.demon.co.uk
Sat Jun 23 02:27:00 GMT 2001


Joseph S. Myers wrote:-

> Presumably your specs reorganisation can make all the -std options, and
> -ansi, alias down to the few values cc1/cc1plus/cpplib need to know about,
> including having -ansi become -std=c89 when compiling C and -std=c++98
> when compiling C++ (possibly both on the same driver command line)?

At present, they override each other - whichever comes last wins.  The
driver automatically knows which are valid, and would give an
appropriate error about invalid ones before the front ends saw them.
At present, I'm not aliasing them, so the last one on the command line
would be passed through to the front ends verbatim, but that can be
easily changed.

I really must post something about what I've done on this.  There's a
small chance I might do it this weekend.

Neil.



More information about the Gcc-bugs mailing list