☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ10.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/var-templ10.C
code
plain
raw
1
// { dg-do compile { target c++14 } }
2
3
template <class T>
4
struct Y
5
{
6
template <class U> static U x;
7
};
8
9
template <class T>
10
template <class U>
11
U Y<T>::x = U();
12
13
int main()
14
{
15
int y = Y<int>::x<int>;
16
}