public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41920]  New: Invalid 'unused parameter' warning for parameters used in lambdas
@ 2009-11-03  5:17 bruck dot michael at googlemail dot com
  2009-11-06  9:35 ` [Bug c++/41920] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bruck dot michael at googlemail dot com @ 2009-11-03  5:17 UTC (permalink / raw)
  To: gcc-bugs

$ cat test1.c
int foo(int i)
{
    auto bar = [=](){ return i; };
    return bar();
}

$ arm-elf-g++.exe -std=gnu++0x -Wall -Wextra -c test1.c
test1.c:1:5: warning: unused parameter 'i'


-- 
           Summary: Invalid 'unused parameter' warning for parameters used
                    in lambdas
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bruck dot michael at googlemail dot com
  GCC host triplet: i686-pc-cygwin
GCC target triplet: arm-unknown-elf


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-01-20 22:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03  5:17 [Bug c++/41920] New: Invalid 'unused parameter' warning for parameters used in lambdas bruck dot michael at googlemail dot com
2009-11-06  9:35 ` [Bug c++/41920] " pinskia at gcc dot gnu dot org
2009-11-16 16:17 ` pinskia at gcc dot gnu dot org
2010-01-20 20:23 ` [Bug c++/41920] [C++0x] " paolo dot carlini at oracle dot com
2010-01-20 20:26 ` paolo dot carlini at oracle dot com
2010-01-20 20:53 ` jason at gcc dot gnu dot org
2010-01-20 21:30 ` jason at gcc dot gnu dot org
2010-01-20 22:00 ` jason at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).