PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ21.C
bloba7b089958364c828dc588b29bc7314f5d54a5db4
1 // PR c++/64455
2 // { dg-do compile { target c++14 } }
4 template<typename Type>
5 constexpr bool IsType = true;
7 template <bool b, class T> struct Test
9 };
11 template <class T>
12 struct Test<true, T>
14         typedef T type;
17 template<class T>
18 struct X {
19     typedef typename Test<IsType<T>,T>::type type;
22 int main()
24    X<int>::type t;