This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49482] New: [regression][4.6.1-RC-20110620][C++0x] unused parameter warning on lambda in function template
- From: "gintensubaru at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jun 2011 07:31:02 +0000
- Subject: [Bug c++/49482] New: [regression][4.6.1-RC-20110620][C++0x] unused parameter warning on lambda in function template
- Auto-submitted: auto-generated
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.