This is the mail archive of the gcc-prs@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: c++/3385: -std=foo doesn't work with C++


The following reply was made to PR c++/3385; it has been noted by GNATS.

From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: Daniel Elstner <daniel.elstner@gmx.net>
Cc: <gcc-gnats@gcc.gnu.org>,  <gcc-bugs@gcc.gnu.org>
Subject: Re: c++/3385: -std=foo doesn't work with C++
Date: Sat, 23 Jun 2001 01:42:21 +0100 (BST)

 On 23 Jun 2001, Daniel Elstner wrote:
 
 > When -std=foo is given g++ doesn't recognize most C++ constructs.
 > Includes of C++ specific headers do fail, too. For some odd reason
 > the new-style casts do still work.
 
 -std is not supported for C++.  Why did the documentation make you think 
 that is was?  Perhaps we can improve the documentation.
 
 It would make sense to support -std for C++, with possible values being 
 iso14882:1998 and g++98, but it's never going to make sense to specify a C 
 standard (ISO 9899) version when compiling C++, and there ought to be 
 appropriate errors given if you try to do so; the lack of error messages 
 is a bug.
 
 -- 
 Joseph S. Myers
 jsm28@cam.ac.uk
 


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