// P2893R3 - Variadic friends // { dg-do compile { target c++11 } } // { dg-options "" } template class A { class X {}; friend Ts...; // { dg-warning "variadic friends or friend type declarations with multiple types only available with" "" { target c++23_down } } }; template class A, A> { class X {}; friend #if __cplusplus < 202002L typename #endif Ts::Y..., Us...; // { dg-warning "variadic friends or friend type declarations with multiple types only available with" "" { target c++23_down } } }; template class B { class X {}; friend T, U; // { dg-warning "variadic friends or friend type declarations with multiple types only available with" "" { target c++23_down } } }; template class C { class X {}; friend U, Vs..., T; // { dg-warning "variadic friends or friend type declarations with multiple types only available with" "" { target c++23_down } } }; class E; class F; class G; class H; class I; class J; class K; class L; class M; class N; class O; class P; class E : A::X {}; class F : A::X {}; class G : B::X {}; class H : B::X {}; class I : C::X {}; class J : C::X {}; class K : C::X {}; class L : C::X {}; class M : C::X {}; class N : C::X {}; class O : C::X {}; struct Q { class Y : A, A>::X {}; }; class P : A, A>::X {}; struct R { class Y; }; struct S { class Y; }; class R::Y : A, A>::X {}; class S::Y : A, A>::X {}; A a;