1 // { dg-do compile { target c++23 } }
3 template<class T, class U, class V> struct F {
10 F(bool, bool, bool) -> F<bool*, void*, int>;
12 template<class T, class U> struct G : F<U, T, int> {
13 using F<U, T, int>::F;
16 using ty1 = decltype(G(true, 'a', 1)); // uses #1
17 using ty1 = G<char, bool>;
19 using ty2 = decltype(G((bool*)0, (char*)0, (int*)0)); // uses #2
20 using ty2 = G<char, bool>;
22 using ty3 = decltype(G(0, 0, 0)); // uses #3
23 using ty3 = G<int, int>;
25 using ty4 = decltype(G(true, true, true)); // uses #4
26 using ty4 = G<void*, bool*>;