This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32934] No warning when creating a non const derived function from a const virtual function
- From: "CyrusOmega at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2007 21:41:00 -0000
- Subject: [Bug c++/32934] No warning when creating a non const derived function from a const virtual function
- References: <bug-32934-14884@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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