blob: 9a25831f4a2808729ed91ab1790402a560d2c379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// PR c++/67225
// { dg-do compile { target c++2a } }
// { dg-additional-options "-fconcepts-ts" }
template<typename A, typename T>
concept bool SomeConcept = true;
template <typename T>
void breaker(SomeConcept<int>);
class SomeClass {
int privateMember;
};
int main() {
return SomeClass().privateMember; // { dg-error "private within this context" }
}
|