This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] -Wc++0x-compat


Douglas Gregor wrote:

> 2007-01-23  Douglas Gregor  <dgregor@osl.iu.edu>
> 
>     * lex.c (D_CPP0X): Rename.
>     (D_CXX0X): To this.
>     (reswords): D_CPP0X -> D_CXX0X.
>     (init_reswords): Ditto.
>     * parser.c (cp_lexer_get_preprocessor_token): Warn about the use
>     of C++0x keywords as identifiers.
>     
> 2007-01-23  Douglas Gregor  <dgregor@osl.iu.edu>
> 
>     * c-common.h (RID_FIRST_CXX0X): New.
>     (RID_LAST_CXX0X): New.
>     * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
>     by -Wall.
>     * c.opt (Wc++0x-compat): New.
>     * doc/invoke.texi (-Wc++0x-compat): Document.
> 
> 2007-01-23  Douglas Gregor  <dgregor@osl.iu.edu>
> 
>     * g++.dg/cpp0x/warn_cxx0x.C: New.

I think this:

+Warn about C++ constructs that may change behavior in the upcoming ISO
C++ standard

would be better as:

Warn about C++ constructs whose meaning differs between ISO C++ 1999 and
ISO C++ 200x.

Similarly:

+Warn about C++ constructs that will change or become obsolete in the
+ISO C++0x standard, e.g., identifiers in C++98 that will become keywords
+in C++0x.  This warning is enabled by @option{-Wall}.

would be better with the sentence above as the introductory clause.

OK with that change.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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