OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / overload3.C
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>();