aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/pr86648.C
blob: 58c611c985fc255120ed09a35fec837d433c5cb4 (plain)
1
2
3
4
5
6
7
// { dg-do compile { target c++17 } }

template <typename> class A;
template <class T> struct B {
  static A a{T::a};		// { dg-error "int" }
};
void foo () { B<int> a; }