1 // { dg-options "-fno-pretty-templates" }
3 template <class T, int N=0, int X=1>
11 A<void> a = 0; // { dg-error "A<void, 0, 1>" }
14 template <class T> T f(T); // { dg-message "int f<int>.int." }
15 template <class T> T f(T, int = 0); // { dg-message "" }
20 typedef typename T::AN BN;
22 BN f(); // { dg-message "AN" }
23 BN f(int = 0); // { dg-message "" }
28 f(1); // { dg-error "" }
29 // { dg-message "candidate" "candidate note" { target *-*-* } 28 }
30 B<A<int> >().f(); // { dg-error "" }
31 // { dg-message "candidate" "candidate note" { target *-*-* } 30 }