3 typedef void (*fptr)();
5 template<typename T, fptr F> struct foo { };
6 template<typename T> struct foo<T,zeroptr> { };
7 // { dg-error "not a valid template argument" "not valid" { target *-*-* } 6 }
8 // { dg-error "must be the address" "must be the address " { target *-*-* } 6 }
10 // The rest is needed to trigger the ICE in 4.0 to 4.3: