aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr92339.C
blob: c94b1d9bc71092d082db15f4fad607d9ddd47ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR c++/92339  */
/* { dg-options "-std=c++11" } */

class classA
{
  template <typename typeB, typeB classA::*> struct typeC
  {
    typeC (classA *);
  };
  int m_fn1();
  unsigned long fieldD;
  using typeE = typeC<unsigned long, &classA::fieldD>;
};
int
classA::m_fn1 ()
{
  typeE (this);
  return 0;
}