1// PR c++/15287
2
3struct S {};
4
5struct Array {
6  S operator[](int);
7} array;
8
9void (S::*mem_fun_ptr)();
10
11template <int> void foo() {
12  (array[0].*mem_fun_ptr)();
13}
14