This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41920] [C++0x] Invalid 'unused parameter' warning for parameters used in lambdas



------- Comment #5 from jason at gcc dot gnu dot org  2010-01-20 21:30 -------
Subject: Bug 41920

Author: jason
Date: Wed Jan 20 21:30:28 2010
New Revision: 156085

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156085
Log:
        PR c++/41920
        * semantics.c (build_lambda_object): Call mark_used on captured
        variables.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41920


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]