repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
var-templ1.C
blob
f24d76db2a922b762727e9aa9218dca132fdb639
1
// PR c++/67117
2
// { dg-options "-std=c++17 -fconcepts" }
3
4
template <class T>
5
requires false
6
constexpr bool v = true;
7
8
template <class T>
9
constexpr bool f() { return true; }
10
11
template <class T>
12
requires v<T>
13
constexpr bool f() { return false; }
14
15
static_assert(f<void>());
16
static_assert(v<void>); // { dg-error "invalid" }