Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit67.C
blobc0863a072a110825ae678fe4d9f508ac977689e8
1 // { dg-do assemble  }
2 struct S
4   void f(int);
5   void f(double);
6 };
8 void g(int);
9 void g(double);
11 template <int* IP>
12 void foo();                     // { dg-message "note" }
13 template <long l>
14 void foo();                     // { dg-message "note" }
16 void bar()
18   foo<S::f>(); // { dg-error "" } no matching function
19   // { dg-message "candidate" "candidate note" { target *-*-* } 18 }
20   foo<g>();    // { dg-error "" } no matching function
21   // { dg-message "candidate" "candidate note" { target *-*-* } 20 }
22