diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2007-02-04 03:59:02 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2007-02-04 03:59:02 +0000 |
commit | f1283f8fade5cb9063936fe13347fd349208f9b3 (patch) | |
tree | b52cf146776ac49362312f99b9eebd7a3d9ecc63 | |
parent | da55315a51eb6231f9ffa49528555884f6260a8a (diff) | |
download | gcc-f1283f8fade5cb9063936fe13347fd349208f9b3.zip gcc-f1283f8fade5cb9063936fe13347fd349208f9b3.tar.gz gcc-f1283f8fade5cb9063936fe13347fd349208f9b3.tar.bz2 |
parser.c (cp_lexer_get_preprocessor_token): Attach the C++0x keyword warning to -Wc++0x-compat.
2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
* parser.c (cp_lexer_get_preprocessor_token): Attach the C++0x
keyword warning to -Wc++0x-compat.
From-SVN: r121563
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parser.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 661f89d..e545c6c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-02-03 Douglas Gregor <doug.gregor@gmail.com> + + * parser.c (cp_lexer_get_preprocessor_token): Attach the C++0x + keyword warning to -Wc++0x-compat. + 2007-02-03 Gabriel Dos Reis <gdr@integrable-solutions.net> * decl.c (grokdeclarator): Update documentation. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index fa18e20..7578f84 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -449,7 +449,8 @@ cp_lexer_get_preprocessor_token (cp_lexer *lexer ATTRIBUTE_UNUSED , { /* Warn about the C++0x keyword (but still treat it as an identifier). */ - warning (0, "identifier %<%s%> will become a keyword in C++0x", + warning (OPT_Wc__0x_compat, + "identifier %<%s%> will become a keyword in C++0x", IDENTIFIER_POINTER (token->u.value)); /* Clear out the C_RID_CODE so we don't warn about this |