summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash68.C
blob: 82da9f8b9c816da76b6e283ff0fd1f76df4f604e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// { dg-do assemble  }
// { dg-options "-w -O" }
// GROUPS passed old-abort
class   RWDlist
{
public:
  RWDlist& operator=(const RWDlist&);
};
class DataItemRWGDlist : public RWDlist {};

class Base {};
class DataItemList : public Base
{
  private:
  DataItemRWGDlist m_diList;
};      

class StatementGroup
{
  public:
    DataItemList   dataItemList;
    StatementGroup(const StatementGroup&);
};

StatementGroup::StatementGroup(const StatementGroup& sg)
{
  dataItemList = sg.dataItemList;
}