This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67273] Incorrect -Wshadow warning with generic lambdas
- From: "lh_mouse at 126 dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Sep 2016 07:37:56 +0000
- Subject: [Bug c++/67273] Incorrect -Wshadow warning with generic lambdas
- Auto-submitted: auto-generated
- References: <bug-67273-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67273
lh_mouse <lh_mouse at 126 dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lh_mouse at 126 dot com
--- Comment #1 from lh_mouse <lh_mouse at 126 dot com> ---
Not very sure whether it is related to this one:
struct foo {
template<typename F>
void iterate(F f){
int i = 1;
f(i);
}
void kick(){
iterate([&](auto i){ });
}
};
Replacing `auto` with `int` gets rid of the warning.