public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gintensubaru at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49482] New: [regression][4.6.1-RC-20110620][C++0x] unused parameter warning on lambda in function template
Date: Tue, 21 Jun 2011 07:31:00 -0000 [thread overview]
Message-ID: <bug-49482-4@http.gcc.gnu.org/bugzilla/> (raw)
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.
next reply other threads:[~2011-06-21 7:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 7:31 gintensubaru at gmail dot com [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-49482-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).