https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121434
Matthijs van Duin <matthijsvanduin at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matthijsvanduin at gmail dot com --- Comment #6 from Matthijs van Duin <matthijsvanduin at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > Note IIRC Wsequence-point is designed for the C++98 rules rather than more > recent rules and this is on purpose. If this is true then that's a bad decision imho. Warning about "undefined behaviour" when the behaviour is in fact well-defined is a bug, plain and simple. When I specify -std=c++17 or later it means I no longer care about the limitations of older versions of the standard, and in fact almost certainly the code won't even compile using those older versions, hence whether or not it would have undefined behaviour under older rules is completely irrelevant.