| 1 |
// PR c++/63528 |
| 2 |
// { dg-do compile { target c++14 } } |
| 3 |
|
| 4 |
template<class...> |
| 5 |
struct X |
| 6 |
{ |
| 7 |
constexpr static bool value = true; |
| 8 |
}; |
| 9 |
|
| 10 |
static_assert(X<int>::value, ""); |
| 11 |
|
| 12 |
template <class... Args> |
| 13 |
constexpr bool X_v = X<Args...>::value; |
| 14 |
|
| 15 |
static_assert(X_v<int>, ""); |