This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49482] [4.6/4.7 regression][C++0x] unused parameter warning on lambda in function template
- 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: Tue, 21 Jun 2011 20:08:12 +0000
- Subject: [Bug c++/49482] [4.6/4.7 regression][C++0x] unused parameter warning on lambda in function template
- Auto-submitted: auto-generated
- References: <bug-49482-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49482
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-21 20:08:05 UTC ---
Author: jason
Date: Tue Jun 21 20:08:01 2011
New Revision: 175274
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175274
Log:
PR c++/49482
* semantics.c (maybe_add_lambda_conv_op): Call mark_exp_read for
static fn parameters.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn3.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog