summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C
blob: c0863a072a110825ae678fe4d9f508ac977689e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble  }
struct S
{
  void f(int);
  void f(double);
};

void g(int);
void g(double);

template <int* IP>
void foo();			// { dg-message "note" }
template <long l>
void foo();			// { dg-message "note" }

void bar()
{
  foo<S::f>(); // { dg-error "" } no matching function
  // { dg-message "candidate" "candidate note" { target *-*-* } 18 }
  foo<g>();    // { dg-error "" } no matching function
  // { dg-message "candidate" "candidate note" { target *-*-* } 20 }
  
}