aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/overload4.C
blob: 1a294eb3c054991b5f7e1992381bb562c3e2b612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/20679

template <class T>
struct foo
{
  struct bar
  {
    int m;
  };

  void m() const {}
  void m() {}
  
  bool n() const { return b->m < 42; }

  bar *b;
};