1 // PR c++/84080 2 // { dg-do compile { target c++14 } } 3 4 template <int i, typename T> T foo(); 5 6 template <> auto foo<0>() { return 42; } // { dg-error "does not match" } 7