1 2 3 4 5 6 7 8 9 10
// { dg-do compile { target c++17 } } template <class T> struct A { int i; }; template <class T> A(T); // { dg-error "must have trailing return type" }