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
/
pr93729.C
blob
7397edb311d95664c8aa990dd13073f310728d1c
1
// { dg-do compile { target c++2a } }
2
3
// PR c++/93729
4
5
struct B
6
{
7
int a:4;
8
int b:4;
9
};
10
11
template<typename T>
12
concept c1
13
= requires(T x, void(f)(int &)) { f(x.a); }; // { dg-bogus "cannot bind" }
14
15
static_assert(!c1<B>);