This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3385: -std=foo doesn't work with C++
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: c++/3385: -std=foo doesn't work with C++
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sat, 23 Jun 2001 10:11:33 +0100 (BST)
- cc: Daniel Elstner <daniel dot elstner at gmx dot net>, <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
On Sat, 23 Jun 2001, Neil Booth wrote:
> cpplib supports "-std=c++98", so we should stick with that. I don't
> see the value in the really verbose forms.
For someone familiar with the C++ standard but not C++ culture/history,
the iso14882:1998 form would be natural. (Though if going literally by
what appears on every page of the standard, it should be -std='ISO/IEC
14882:1998(E)'.)
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)?
--
Joseph S. Myers
jsm28@cam.ac.uk