blob: 99ffdc0a4834eb32a52241f49d252b7a322a5991 (
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 -fconcepts" }
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 "invalid" }
|