// { dg-do compile { target c++17 } } template struct A { int i; }; template A(T); // { dg-error "must have trailing return type" }