summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/crash4.C
blob: 65686512a9d097e8db0f6bbada4ac4af50fadea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do compile }
//
// PR 3761

struct A {};

struct B {};

template <class T>
struct Foo : A, B
{
  void func(void);

  struct Nested
  {
    friend void Foo::func(void);
  };
};