http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56239
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-03 18:21:16 UTC --- 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 <ja...@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