1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// PR c++/28025 class BaseSubmit { template<class T> friend class PeriodicSubmit; }; template<class ID> class ValuesSubmit { template<class T> friend class PeriodicSubmit; }; class A; class MultiSubmit : public ValuesSubmit<A> { };