re PR c++/52725 (error: "capture of non-variable" for new-expression incorrectly...
authorJason Merrill <jason@redhat.com>
Fri, 1 Jun 2012 21:19:22 +0000 (17:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Jun 2012 21:19:22 +0000 (17:19 -0400)
commitef4b1d6de554112c5716aff60e6b8b56d32328e4
tree0d41a42bdf7925b81fc55720afe893570ee516cc
parent4efa926130748eacb2ab2773cfb16426baed95a2
re PR c++/52725 (error: "capture of non-variable" for new-expression incorrectly parsed as lambda-expression)

PR c++/52725
* parser.c (cp_parser_binary_expression): Bail early if we're parsing
tentatively and the LHS has a parse error.

From-SVN: r188127
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/new6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/sizeof-template-argument.C