diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-29 02:17:37 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-29 02:17:37 +0000 |
| commit | cad7fbbda3bc911491d2e8a496da5a20a9a81301 (patch) | |
| tree | 72576b09d977772d193afacea36c0a3c959dcae0 | |
| parent | 89e83a91934de860ad45cdacc8c3e72df2702686 (diff) | |
| download | ppe42-gcc-cad7fbbda3bc911491d2e8a496da5a20a9a81301.tar.gz ppe42-gcc-cad7fbbda3bc911491d2e8a496da5a20a9a81301.zip | |
* parser.c (cp_parser_unary_expression): Remove redundant C++0x
check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168308 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/parser.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b8247b4e97e..f11d7d2a9ea 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-23 Jason Merrill <jason@redhat.com> + + * parser.c (cp_parser_unary_expression): Remove redundant C++0x + check. + 2010-12-27 Jakub Jelinek <jakub@redhat.com> PR c++/46626 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 743d774b5a3..43e91b034cf 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -5944,9 +5944,7 @@ cp_parser_unary_expression (cp_parser *parser, bool address_p, bool cast_p, /* ISO C++ defines alignof only with types, not with expressions. So pedwarn if alignof is used with a non- type expression. However, __alignof__ is ok. */ - if (cxx_dialect >= cxx0x - && !strcmp (IDENTIFIER_POINTER (token->u.value), - "alignof")) + if (!strcmp (IDENTIFIER_POINTER (token->u.value), "alignof")) pedwarn (token->location, OPT_pedantic, "ISO C++ does not allow %<alignof%> " "with a non-type"); |

