This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warning when hiding methods


Thank you, that's exactly what I was looking for.

PH
--- Nathan Sidwell <nathan@codesourcery.com> a écrit:
> Philippe Haution wrote:
> > Hello,
> > 
> > The program hereafter compiles silently with
> gcc3.2.3
> > and gcc 3.4.1 although there is a name hinding
> > problem.
> > 
> > Is there a compile option to get the same sort of
> > warning that Sun's CC would emit in this case :
> > "Warning: Son::func hides the virtual function
> > Mother::func(float)."
> 
> -Woverloaded-virtual
> 
> nathan
> -- 
> Nathan Sidwell    ::   http://www.codesourcery.com  
> ::     CodeSourcery LLC
> nathan@codesourcery.com    ::    
> http://www.planetfall.pwp.blueyonder.co.uk
> 
> 


	

	
		
_____________________________________________________________________________ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]