https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105809
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: template<typename ss> void hh() { ss t; } template<int> int f(void) { constexpr char const* cc = __PRETTY_FUNCTION__; struct j{ char const* kk=cc; }; hh<j>(); } int t = f<1>();