https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67254
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Are you sure they are "live" at the same time? AFAIK when optimizing their lifetime is disjunct. Does it work when replicating the printf with 'reference' also before the one with 'data'?