Skip to content
Snippets Groups Projects
  • Manuel López-Ibáñez's avatar
    b65eff46
    re PR c++/57709 (-Wshadow is too strict / has false positives) · b65eff46
    Manuel López-Ibáñez authored
    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
    b65eff46
    History
    re PR c++/57709 (-Wshadow is too strict / has false positives)
    Manuel López-Ibáñez authored
    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