aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-pr67225-3.C
blob: 4754193c029dbb95775bcf0f7e5af63544e8b107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/67225
// { dg-do compile { target c++20 } }
// { dg-additional-options "-fconcepts" }

template <class>
concept Dummy = true;

template <typename>
class example {
    template <Dummy U>
    friend auto func();
};

class test {
    test() = default;
};

int main()
{
    test t; // { dg-error "private within this context" }
}