Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/auto-fn66.C

raw
1 // PR c++/120757
2 // { dg-do compile { target c++14 } }
3
4 template <typename> struct A
5 {
6 auto foo() {}
7 };
8
9 auto bar(void (A<int>::*)()) {}
10
11 template <int> auto baz()
12 {
13 bar(&A<int>::foo);
14 }
15
16 int main()
17 {
18 baz<0>();
19 return 0;
20 }