Since the most recent C++ standard is officially dated 2003
(representing the 1998 standard adjusted by the 2003 technical
corrigendum) we really ought to support -std=c++03, meaning the same
thing as -std=c++98 since we don't attempt to distinguish between the two.
Tested x86_64-pc-linux-gnu, applying to trunk.
commit 170711238aced11aa20095caebd1fe4c9e4f7b55
Author: Jason Merrill <ja...@redhat.com>
Date: Wed Mar 23 11:09:19 2011 +0100
* c.opt: Add -std=c++03.
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 0061ec5..4c4727f 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -1137,7 +1137,11 @@ Remap file names when including files
std=c++98
C++ ObjC++
-Conform to the ISO 1998 C++ standard
+Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
+
+std=c++03
+C++ ObjC++ Alias(std=c++98)
+Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
std=c++0x
C++ ObjC++