]> gcc.gnu.org Git - gcc.git/commit
decl.c (shadow_warning): New function.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Thu, 8 Nov 2001 19:04:43 +0000 (19:04 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 8 Nov 2001 19:04:43 +0000 (19:04 +0000)
commit8ac9ea616e01991beb4164c1a44647763d33302c
tree76fd6ca76e5f6ba17b56e70c9283886caa7a0d95
parent86724f7f86713c04e2e2be9e866032b12ff64a61
decl.c (shadow_warning): New function.

* cp/decl.c (shadow_warning): New function.
(pushdecl): Improve -Wshadow warnings.  Don't give both a warning
and an error when a block scope decl shadows a parameter.

* g++.dg/warn/Wshadow-1.C: New tests.
* g++.old-deja/g++.mike/for3.C: Update.

From-SVN: r46852
gcc/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wshadow-1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.mike/for3.C
This page took 0.058613 seconds and 5 git commands to generate.