Debian Codegraph @

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

raw
1 // PR c++/16870
2
3 struct A
4 {
5 int operator[](int) const;
6 };
7
8 template<int> A foo();
9
10 A bar(A(*)());
11
12 template<int> int baz() { return (bar(&foo<0>))[0]; }
13
14 template int baz<0>();