aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction98.C
blob: bee0ce433ee0f6ebcb7cd4b4de51c8495a20d8f7 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/79501
// { dg-do compile { target c++17 } }

template<class T>
struct A {
  template<class U> struct B { template<class V> B(V); };
  B(T) -> B<T>;
};

A<int>::B b(0);