1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// PR c++/29080 struct Base { template<class C> void method() { } }; struct Left : public Base { }; struct Right : public Base { }; struct Join : public Left, public Right { }; void function() { Join join; join.Left::method<int>(); }