// PR c++/102104 // A version of using-variadic1.C where the qualifying scope and the // terminal name of the using-declaration use different parameter packs. // { dg-do compile { target c++17 } } struct A { using target_type = bool*; operator bool*(); }; struct B { using target_type = long*; operator long*(); }; template struct cls { template struct nested : private Bases... { using Bases::operator typename Ts::target_type...; }; }; cls::nested v1; bool* a1 = v1; long* b1 = v1; cls::nested v2; bool* a2 = v2; // { dg-error "cannot convert" } long* b2 = v2; cls::nested v3; bool* a3 = v3; long* b3 = v3; // { dg-error "cannot convert" }