https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83258
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > Testcase from Bug 85589: > > template<auto& v> struct foo {}; > > int main() { > static auto v = "str"; > (void) foo<v> {}; > } Note comment #4 is already fixed (I reopened PR 85589 to close it was fixed [or as a dup if I can find one]). The rest of the testcases still fail on the trunk.