This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52725] [4.7/4.8 Regression] error: "capture of non-variable" for new-expression incorrectly parsed as lambda-expression
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Jun 2012 21:20:19 +0000
- Subject: [Bug c++/52725] [4.7/4.8 Regression] error: "capture of non-variable" for new-expression incorrectly parsed as lambda-expression
- Auto-submitted: auto-generated
- References: <bug-52725-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52725
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-01 21:19:42 UTC ---
Author: jason
Date: Fri Jun 1 21:19:36 2012
New Revision: 188128
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188128
Log:
PR c++/52725
* parser.c (cp_parser_binary_expression): Bail early if we're parsing
tentatively and the LHS has a parse error.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/new6.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/parser.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/sizeof-template-argument.C
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-01 21:20:19 UTC ---
Fixed for 4.7.1.