Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr67225-3.C

raw
1 // PR c++/67225
2 // { dg-do compile { target c++20 } }
3 // { dg-additional-options "-fconcepts" }
4
5 template <class>
6 concept Dummy = true;
7
8 template <typename>
9 class example {
10 template <Dummy U>
11 friend auto func();
12 };
13
14 class test {
15 test() = default;
16 };
17
18 int main()
19 {
20 test t; // { dg-error "private within this context" }
21 }