summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-friend4.C
blob: 88f9fe825f8dbc4480b2b1532c2a7568d6ce04be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// C++20 NB comment US115
// { dg-do compile { target c++2a } }

template <class T> concept Any = true;

template <class T>
struct A
{
  friend void f() requires Any<T> { } // OK
  friend void g() requires Any<T>;    // { dg-error "" }
};

A<int> a;