// PR c++/105143 // { dg-do compile { target c++17 } } // { dg-additional-options "-Werror=ctad-maybe-unsupported" } template struct A { }; template class TT> auto f(...) -> decltype(TT()); // #1 template class TT> void f(int); // #2 int main() { f(0); // Calls #2 without issuing a -Wctad-maybe-unsupported // diagnostic for #1. }