re PR c++/30566 (-Wshadow warns about clashes between nested function parameters in C++)
gcc/cp/ 2010-05-14 Shujing Zhao <pearly.zhao@oracle.com> PR c++/30566 * name-lookup.c (pushdecl_maybe_friend): Avoid the warnings about shadowing the outer parameter or variables by the declaration of nested function in nested structure or class. Warn the shadowing by the declaration of nested lambda expression. gcc/testsuite/ 2010-05-14 Shujing Zhao <pearly.zhao@oracle.com> PR c++/30566 * testsuite/g++.dg/warn/Wshadow-4.C: Adjust. * testsuite/g++.dg/warn/Wshadow-5.C: New test. * testsuite/g++.dg/warn/Wshadow-6.C: New test. From-SVN: r159383
Showing
gcc/testsuite/g++.dg/warn/Wshadow-5.C
0 → 100644
gcc/testsuite/g++.dg/warn/Wshadow-6.C
0 → 100644
Please
register
or
sign in
to comment