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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 May 2012 11:59:26 +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
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-29 11:59:26 UTC ---
(In reply to comment #6)
> N.B. 4.5 says
>
> t.cc: In function âvoid f()â:
> t.cc:7:19: warning: lambda expressions only available with -std=c++0x or
> -std=gnu++0x
>
> But that was fixed for 4.6
I tested 4.5.2, that should be fixed in 4.5.3, see Bug 46159 and its dup Bug
47651