This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79385] ICE on (likely) valid C++11 code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14451


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]