1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do assemble } // GROUPS passed visibility template <class T> class Feld { public: Feld(const Feld&) {} }; class Polynom : private Feld<double> { Polynom(); friend Polynom f(const Polynom&); }; Polynom f(const Polynom& p) { return p; }