https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79385
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Since r252005: 79385.C: In member function ‘constexpr int A<T>::f() const’: 79385.C:10:68: error: ‘R’ was not declared in this scope 10 | template < typename T > constexpr int A < T >::f () const { return R; } clang++: 79385.C:10:68: error: enumerator 'R' does not exist in instantiation of 'A<int>' template < typename T > constexpr int A < T >::f () const { return R; } Thus closing.