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