1 // { dg-do compile { target c++17 } } 2 3 namespace N { 4 template <class T> 5 struct A 6 { 7 int i; 8 A(...); 9 }; 10 } 11 12 template <class T> 13 N::A(T) -> N::A<T>; // { dg-error "should have been declared inside .N" } 14 15 namespace N { 16 template <class T> 17 A(T) -> A<T>; 18 } 19