repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
pr91073-2.C
blob
2900aaeff6956a3386801e7a65801c30ff89e306
1
// { dg-do compile { target c++17 } }
2
// { dg-options "-fconcepts" }
3
4
template<typename P, typename Arghhh = void>
5
concept one_or_two = true;
6
7
template<typename P>
8
concept one = one_or_two<P>;
9
10
template<typename T>
11
constexpr void
12
foo()
13
{
14
if (one<T>) // OK
15
{ }
16
17
if (one_or_two<T>) // { dg-bogus "before" }
18
{ }
19
}