https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78599
--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Martin Jambor from comment #7) > I cannot reproduce this using the testcase from comment #1 even whe I add > -fsanitize=undefined to the command line. Is this on x86_64? You need to use an instrumented compiler, either --with-build-config="bootstrap-ubsan" or CXX="g++ -fsanitize=undefined" ../gcc/configure.