aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-22 19:12:46 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-22 19:12:46 +0000
commitb65eff46797a017f6ff524c87e8513948073c089 (patch)
treec86a4aafb8a1a26f9bd4278787e962a264ab6afb /gcc/function.c
parent6c6d76bec50feb6f9d9455d968c05de121b591d8 (diff)
downloadgcc-b65eff46797a017f6ff524c87e8513948073c089.zip
gcc-b65eff46797a017f6ff524c87e8513948073c089.tar.gz
gcc-b65eff46797a017f6ff524c87e8513948073c089.tar.bz2
re PR c++/57709 (-Wshadow is too strict / has false positives)
gcc/cp/ChangeLog: 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/57709 * name-lookup.c (pushdecl_maybe_friend_1): Do not warn if a declaration shadows a function declaration, unless the former declares a function, pointer to function or pointer to member function, because this is a common and valid case in real-world code. * cp-tree.h (TYPE_PTRFN_P,TYPE_REFFN_P,TYPE_PTRMEMFUNC_P): Improve description. gcc/testsuite/ChangeLog: 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/57709 * g++.dg/Wshadow.C: New test. From-SVN: r214357
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions