https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79671
--- Comment #92 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- It is an interesting fact that g++ -flto -fdump-rtl-final t.cc has correct rtl: (insn 7 6 8 2 (set (mem/c:DI (symbol_ref:DI ("t1") [flags 0x2] <var_decl 0x7f583248fab0 t1>) [0 t1+0 S8 A64]) (reg:DI 0 ax [90])) "t.cc":17 81 {*movdi_internal} (nil))