1// PR c++/51029 2 3struct A 4{ 5 void foo(); 6}; 7 8struct B : virtual A 9{ 10 template<int> B() 11 { 12 foo(); 13 } 14}; 15