// Test that a non-template deduction guide that doesn't match the alias is // ignored. // { dg-do compile { target c++20 } } template struct identity { using type = T; }; template using identity_t = typename identity::type; template struct C { C(T, U); // #1 }; C(char*, char*) -> C; // #3 template using A = C; char c; A a4 (&c, &c); // ignores #3 because C is not an A static_assert (__is_same_as(decltype(a4),A)); C c2 (&c, &c); // { dg-error "conversion" } deduces with #3