aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/array6.C
blob: 0dc5161b2b2c36a35ba4a81ef9a25a60e9117117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/15287

struct S {}; 
 
struct Array { 
  S operator[](int); 
} array; 
 
void (S::*mem_fun_ptr)(); 
 
template <int> void foo() { 
  (array[0].*mem_fun_ptr)(); 
}