https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- template <typename> struct A { static const int value = 0; static auto constexpr fn = [] { return __PRETTY_FUNCTION__; }; }; template <typename type> int x = A<type>::value; auto s = x<int>;