1 // PR c++/60384
2 // { dg-do compile { target c++14 } }
3 
4 template<typename> int foo();
5 
6 struct A
7 {
8   typedef auto foo<>();  // { dg-error "11:typedef declared 'auto'" }
9 };
10