https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475
--- Comment #66 from Daniel Marjamäki <daniel.marjamaki at gmail dot com> --- Thanks! I can appreciate that it's not very simple. Well using a flag is totally acceptable. I don't trust the sanitizer completely but those that do can use the optimisation.