[Bug c++/32934] No warning when creating a non const derived function from a const virtual function
CyrusOmega at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jul 31 21:41:00 GMT 2007
------- Comment #4 from CyrusOmega at gmail dot com 2007-07-31 21:41 -------
Subject: Re: No warning when creating a non const derived function from a
const virtual function
Wow, thanks. I thought that -Wall was ALL warnings. grumble grumble...
Andrew
On 31 Jul 2007 21:32:32 -0000, fang at csl dot cornell dot edu
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> ------- Comment #3 from fang at csl dot cornell dot edu 2007-07-31 21:32 -------
> Try compiling with -Woverloaded-virtual (C++ only). That catches the situation
> you describe. (I don't think it's enabled by -Wall or -Wextra.)
>
>
> --
>
> fang at csl dot cornell dot edu changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |fang at csl dot cornell dot
> | |edu
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32934
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32934
More information about the Gcc-bugs
mailing list