Debian Codegraph @

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

raw
1 // { dg-do compile { target c++14 } }
2
3 template <class T>
4 constexpr T v = T();
5
6 template <class T>
7 constexpr T v<T*> = T();
8
9 template <class T>
10 struct A {
11 static constexpr decltype (v<T>) v = ::v<T>;
12 };
13
14 double d1 = v<double*>;
15 double d2 = A<double*>::v;