------- Comment #3 from pzhao at gcc dot gnu dot org 2010-05-14 03:19 ------- Subject: Bug 30566
Author: pzhao Date: Fri May 14 03:19:32 2010 New Revision: 159383 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159383 Log: gcc/cp/ 2010-05-14 Shujing Zhao <pearly.z...@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.z...@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. Added: trunk/gcc/testsuite/g++.dg/warn/Wshadow-5.C trunk/gcc/testsuite/g++.dg/warn/Wshadow-6.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/name-lookup.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/warn/Wshadow-4.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30566