OSDN Git Service

PR c++/29363
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / array6.C
1 // PR c++/15287
2
3 struct S {}; 
4  
5 struct Array { 
6   S operator[](int); 
7 } array; 
8  
9 void (S::*mem_fun_ptr)(); 
10  
11 template <int> void foo() { 
12   (array[0].*mem_fun_ptr)(); 
13