summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/crash2.C
blob: 82735245f4886b208938e0a1ddc342722569232e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/14086

struct ClassA
{
  ClassA();
};

struct ClassB
{
  enum Enum {ClassB}; // { dg-error "" }
  ClassA key;

           ClassB();
  virtual ~ClassB();
};


ClassB::ClassB()
{
}