https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117913
--- Comment #3 from Alisdair Meredith <alisdairm at me dot com> --- Clang and MSVC have bigger bugs that I am filing bug reports on shortly! EDG gets this correct and passes all parts of the test, including the "expected" undefined behavior: https://godbolt.org/z/EG3EP5EW4