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)
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

index cd8dfd2..d21c713 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2010-05-13  Jason Merrill  <jason@redhat.com>
 
        * typeck.c (cp_build_array_ref): Factor out from...
index 7c50d61..6320390 100644 (file)
@@ -1,3 +1,10 @@
+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
+
 2010-05-13  Daniel Franke  <franke.daniel@gmail.com>
 
         PR fortran/35779