This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79385] ICE on (likely) valid C++11 code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14451
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Dec 2018 16:20:53 +0000
- Subject: [Bug c++/79385] ICE on (likely) valid C++11 code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14451
- Auto-submitted: auto-generated
- References: <bug-79385-4@http.gcc.gnu.org/bugzilla/>
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.