PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / array6.C
blob0dc5161b2b2c36a35ba4a81ef9a25a60e9117117
1 // PR c++/15287
3 struct S {}; 
4  
5 struct Array { 
6   S operator[](int); 
7 } array; 
8  
9 void (S::*mem_fun_ptr)(); 
11 template <int> void foo() { 
12   (array[0].*mem_fun_ptr)(); 
13