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++/86648] [9 Regression] ICE on class template argument deduction


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.

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