summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem4.C
blob: 62262c4b8e9326fcc855a61f2df1ad0f8076d27b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do compile }

// Origin: Scott Snyder <snyder@fnal.gov>

// PR c++/8849
// Pointer to member function template argument deduction ICE.


template <class CONT> void queryAliases(CONT& fill_me); // { dg-message "queryAliases|no known conversion" }

struct SpyExample
{
  void ready();
  void inputs();
};

void SpyExample::ready()
{
  queryAliases(inputs); // { dg-error "matching" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 19 }
}