OSDN Git Service

* parser.c (cp_parser_unary_expression): Remove redundant C++0x
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Dec 2010 02:17:37 +0000 (02:17 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Dec 2010 02:17:37 +0000 (02:17 +0000)
check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168308 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/parser.c

index b8247b4..f11d7d2 100644 (file)
@@ -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
index 743d774..43e91b0 100644 (file)
@@ -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");