3 // { dg-options "-g -O" }
5 template <typename> class A;
8 template <typename T, typename U>
9 static bool foo (U T::*) { return true; }
11 template <typename, typename> class J;
12 template <typename T, typename U, typename V, typename... W>
13 class J<V (W...), U T::*> : public J<void(), U T::*> {};
14 template <typename T, typename U, typename... W>
15 class J<void(W...), U T::*> : public B {};
16 template <typename V, typename... W> struct A<V (W...)>
18 template <typename, typename> using K = int;
19 template <typename L, typename = K<int, void>, typename = K<int, void>> A (L);
21 template <typename V, typename... W>
22 template <typename L, typename, typename>
23 A<V (W...)>::A (L x) { J<V (), L>::foo (x); }
27 template <class O, class P>
39 bar<int (N::*) (...) &, int()> ();
40 bar<int (N::*) (...) const &, int()> ();
41 bar<int (N::*) (...) volatile &, int()> ();