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 {
16 template <int> void bar (void) {
17 foo <int, I<1> > (&I<1>::o);