[Bug c++/52725] [4.7/4.8 Regression] error: "capture of non-variable" for new-expression incorrectly parsed as lambda-expression
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 1 21:21:00 GMT 2012
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.
More information about the Gcc-bugs
mailing list