Debian Codegraph @

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

raw
1 // PR c++/110580
2 // { dg-do compile { target c++14 } }
3
4 template<class T>
5 struct A {
6 template<typename U, typename V = U>
7 static constexpr bool v1 = __is_same(U, V);
8
9 template<typename U, typename V = T>
10 static constexpr bool v2 = !__is_same(U, V);
11
12 static_assert(v1<int>, "");
13 static_assert(v2<int>, "");
14 };
15
16 template struct A<char>;