PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr70466-2.C
blob7a7458a61f1ea1e58d2cd7231082f363a974cad1
1 // PR c++/70466
3 template < class T, class S >
4 struct A
6   explicit A (...) {}
7 };
9 template < class T, class S >
10 A < T, S > foo (T (S::*f) ())
12   return A < T, S > (f);
15 struct B
17   void bar () {}
20 int
21 main ()
23   foo (&B::bar);
24   return 0;