2 // Don't instantiate a function template if it would generate an
7 template<int T> struct cl {
8 const static int value = T;
11 template<int I> void fn (char (*) [cl<I>::value] = 0 ); // { dg-message "note" }
15 fn<0> (); // { dg-error "no matching function" }
16 // { dg-message "candidate" "candidate note" { target *-*-* } 15 }