https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88445
--- Comment #1 from Antony Polukhin <antoshkka at gmail dot com> --- Hm... This was discussed in Clang and looks like such optimization could break ABI and cause ODR violations https://bugs.llvm.org/show_bug.cgi?id=27442#c4 If nothing changed since then, I'm OK with closin this issue as Invalid or Won't Fix.