parser.c (cp_parser_unary_expression): Remove redundant C++0x check.

* parser.c (cp_parser_unary_expression): Remove redundant C++0x
	check.

From-SVN: r168308
This commit is contained in:
Jason Merrill 2010-12-28 21:17:37 -05:00 committed by Jason Merrill
parent db0581ae63
commit 6f13089ed5
2 changed files with 6 additions and 3 deletions

View 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

View 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");