fork download
  1. class X {
  2. private:
  3. template <class T>
  4. class Y {
  5. public:
  6. void f() {}
  7. };
  8. protected:
  9. Y<int> m;
  10. };
  11.  
  12. class Z : public virtual X {
  13. public:
  14. void f() {
  15. m.f();
  16. }
  17. };
  18.  
  19. int main () {}
  20.  
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout

Standard output is empty