OSDN Git Service

PR c/529
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 2005 23:58:37 +0000 (23:58 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 2005 23:58:37 +0000 (23:58 +0000)
commit40c4b476ccfc54dddcb41f0b6983bd8f0e8474f8
tree3ad218f5e1b3a354c3a0ba4c3d6b6756f4ca0a8d
parentc9f7685f6573c9c5db98cb3837131de4ed29f80e
PR c/529
* c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
nested function declarators.
(pushdecl): Don't call warn_if_shadowing for PARM_DECL.
(grokparms): Call warn_if_shadowing for parameters used within the
parameter list.
(store_parm_decls_newstyle): Call warn_if_shadowing for parameters
not used within the parameter list.
(store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.

testsuite:
* gcc.dg/Wshadow-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102571 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wshadow-3.c [new file with mode: 0644]