blob: 79476c354166c87bed0ebeef02f6299da7443076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/67117
// { dg-options -std=c++1z }
template <class T>
requires false
constexpr bool v = true;
template <class T>
constexpr bool f() { return true; }
template <class T>
requires v<T>
constexpr bool f() { return false; }
static_assert(f<void>());
static_assert(v<void>); // { dg-error "constraints" }
|