https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67273

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Created attachment 40587
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40587&action=edit
Simpler testcase

nathans@devbig026:423>trunk/obj/x86_64/gcc/cc1plus  -Wshadow -quiet -std=c++14
shadow.ii
shadow.ii: In instantiation of 'Baz()::<lambda(auto:1&&)> [with auto:1 = int]':
shadow.ii:5:10:   required from 'void Foo(T&&) [with T =
Baz()::<lambda(auto:1&&)>]'
shadow.ii:10:26:   required from here
shadow.ii:10:22: warning: declaration of 'ARG' shadows a previous local
[-Wshadow]
   Foo ([] (auto &&ARG) {});
                      ^
shadow.ii:4:7: note: shadowed declaration is here
   int ARG = 2;
       ^~~

Reply via email to