PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / non-dependent11.C
blobdff5b909d954bc4bbe76d5a5ba15f3f1a550d46f
1 // { dg-do compile }
3 // Origin: Jakub Jelinek <jakub@gcc.gnu.org>
4 //         Wolfgang Bangerth <bangerth@ticam.utexas.edu>
6 // PR c++/19311: Non-dependent address to member as function argument.
8 template <class R, class T>          void foo (R (T::*x) ()); 
9 template <class R, class T, class C> void foo (R (T::*x) (C)); 
11 template<int> struct I { 
12   int o (); 
13   int o () const; 
14 }; 
16 template <int> void bar (void) { 
17   foo <int, I<1> > (&I<1>::o);