Debian Codegraph @

gcc/testsuite/g++.dg/template/ptrmem4.C

raw
1 // { dg-do compile }
2
3 // Origin: Scott Snyder <[email protected]>
4
5 // PR c++/8849
6 // Pointer to member function template argument deduction ICE.
7
8
9 template <class CONT> void queryAliases(CONT& fill_me);
10
11 struct SpyExample
12 {
13 void ready();
14 void inputs();
15 };
16
17 void SpyExample::ready()
18 {
19 queryAliases(inputs); // { dg-error "invalid" }
20 }