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.