PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / ptrmem3.C
blobfda7bf10a4d6f247b3989c10e8d7db4be4b50233
1 // Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3 template <typename T,double (T::*fun)() const>
4 struct I {
5 };
7 struct R {
8     R() { }
9 };
11 class H: public R {
12 public:
13     H(): R() { }
14     double& f() { return a; }
15     double  f() const { return 1.0; }
16     double a;
19 struct A {
20     typedef I<H,&H::f> F;
21     A() { }