This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Using -Wall and -Woverloaded-virtual together changes the behaviour of the code
- From: Mason <slash dot tmp at free dot fr>
- To: Vadim Zeitlin <vz-gcc at zeitlins dot org>
- Cc: GCC help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 27 Mar 2018 15:08:31 +0200
- Subject: Re: Using -Wall and -Woverloaded-virtual together changes the behaviour of the code
- References: <E1ezQmN-000162-Sn@smtp.tt-solutions.com>
On 23/03/2018 18:47, Vadim Zeitlin wrote:
> I'm running into a rather crazy problem that I can't minimize enough to
> create a bug report for, so I'd like to ask here if anybody might have any
> ideas about it by chance. The problem is that the behaviour of some piece
> of C++ code changes, when compiling using MinGW g++ 7.2 (20180123 version
> from Debian Buster) and "-O2", depending on whether _both_ of -Wall and
> -Woverloaded-virtual command line options are specified or not.
That is an interesting problem ^_^
I wanted to try reproducing, but it seems that Ubuntu only packages old
versions of mingw-w64 (6.3 in 17.10; 5.3 in 16.04 LTS)
Do you know if your issue occurs with older versions of mingw-w64?
(I see that upcoming 18.04 does provide version 7.3)
In my opinion, if the problem does not occur on "vanilla" gcc, then
the issue might lie with the mingw-w64 specific bits.
Regards.