OSDN Git Service

gcc/cp/
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 May 2010 03:19:32 +0000 (03:19 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:08:04 +0000 (14:08 +0900)
commitc1e7ae5ee20533ac318fadae29fb332c0e1753f2
tree4605fbae206f000577bb8f181b2c9022936985c5
parentbcc73a97d731ac5fe50e07f0691781f018885a98
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159383 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog