https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100468
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Though it is static and what you're talking about is making automatic into static. So guess we would need automatic temporary with something like { 1, 2, 3 } initializer and have reference bind to that temporary. My C++-fu is limited.