Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ59.C

raw
1 // PR c++/71569
2 // { dg-do compile { target c++14 } }
3
4 template <class T>
5 struct A {
6 template <class U>
7 static U u;
8 };
9
10 int main()
11 {
12 decltype(A<int>::u) a; // { dg-error "missing template arguments" }
13 return a;
14 }