This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/86648] [9 Regression] ICE on class template argument deduction
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Dec 2018 19:08:17 +0000
- Subject: [Bug c++/86648] [9 Regression] ICE on class template argument deduction
- Auto-submitted: auto-generated
- References: <bug-86648-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86648
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-12-04
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
template <typename> class A;
template <class T> struct B { static A a{T::a}; };
void foo () { B<int> a; }
Started to ICE with -std=c++17 -g when this started to be accepted in r260150.
Or e.g.
template <typename> struct A {};
template <class T> struct B { static A a{T::a}; };
template <typename T> struct C { static A<T> a; };
void foo () { B<C<int>> a; }
ICEs too.