public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49482] New: [regression][4.6.1-RC-20110620][C++0x] unused parameter warning on lambda in function template
@ 2011-06-21  7:31 gintensubaru at gmail dot com
  2011-06-21 19:59 ` [Bug c++/49482] [4.6/4.7 regression][C++0x] " jason at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gintensubaru at gmail dot com @ 2011-06-21  7:31 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [regression][4.6.1-RC-20110620][C++0x] unused
                    parameter warning on lambda in function template
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gintensubaru@gmail.com


testsuite (bug.cc):

template<class T>
void f() {
  []( bool b ){ return b; };
}

int main()
{
  f<int>();
}


message:

bug.cc: In static member function 'static bool f() [with T =
int]::<lambda(bool)
>::_FUN(bool)':
bug.cc:3:4:   instantiated from 'f() [with T = int]::<lambda(bool)>'
bug.cc:3:3:   instantiated from 'void f() [with T = int]'
bug.cc:8:10:   instantiated from here
bug.cc:3:14: warning: parameter 'b' set but not used
[-Wunused-but-set-parameter
]


version:

gcc-4.6.1-RC-20110620


note:

gcc-4.6-20110527 doesn't raise such a warning.


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

end of thread, other threads:[~2011-06-21 20:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-21  7:31 [Bug c++/49482] New: [regression][4.6.1-RC-20110620][C++0x] unused parameter warning on lambda in function template gintensubaru at gmail dot com
2011-06-21 19:59 ` [Bug c++/49482] [4.6/4.7 regression][C++0x] " jason at gcc dot gnu.org
2011-06-21 20:00 ` jason at gcc dot gnu.org
2011-06-21 20:08 ` jason at gcc dot gnu.org
2011-06-21 20:08 ` jason at gcc dot gnu.org
2011-06-21 20:11 ` jason at gcc dot gnu.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).