r197450 - in /branches/gcc-4_6-branch/gcc: cp/C...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Wed Apr 3 18:04:00 GMT 2013
Author: jakub
Date: Wed Apr 3 18:04:07 2013
New Revision: 197450
URL: http://gcc.gnu.org/viewcvs?rev=197450&root=gcc&view=rev
Log:
Backported from mainline
2013-02-07 Jakub Jelinek <jakub@redhat.com>
PR c++/56239
* parser.c (cp_parser_token_starts_cast_expression): Renamed to...
(cp_parser_tokens_start_cast_expression): ... this. Change parameter
to cp_parser *, call cp_lexer_peek_token first. For CPP_OPEN_PAREN,
return true only if 2nd token isn't CPP_CLOSE_PAREN.
(cp_parser_cast_expression): Adjust caller.
* g++.dg/parse/pr56239.C: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/parse/pr56239.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/parser.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list