// Use a small template instantiation depth to speed up testing // { dg-options "-ftemplate-depth-5" } // { dg-do compile } // Origin: rullo.pat@tiscalinet.it // Nathanael Nerode // Wolfgang Bangerth // PR c++/6749: Infinite loop generating vtable. template struct inner {}; template struct parent { virtual void f() // { dg-error "instantiation depth" } { parent > p; }; }; template struct parent;