2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash1.C
bloba718674471838c7da6f6b8248b2db0b0855ee8bf
1 // { dg-do assemble  }
2 // GROUPS passed old-abort
3 class D_Interval;
5 class Date
7  public:
8   Date(const D_Interval*,const Date&);
9 private:
10   const D_Interval* interval;
13 class Time_Interval
15  public:
16    Time_Interval(const Date& start,const Date& stop);
17    const Date& Start() const { return start; }
18    const Date& Stop() const { return stop; }
19  private:
20    Date start;
21    Date stop;
24 class Dated_Data
26  public:
27    Dated_Data(const Time_Interval& dates);
28    virtual ~Dated_Data();
29    Time_Interval Dates() const { return dates; }
30  private:
31    Time_Interval dates;
34 class Raw_Data : public Dated_Data
36  public:
37    Raw_Data(const Dated_Data *source,const D_Interval& period);
40 Raw_Data::Raw_Data(const Dated_Data *source,const D_Interval& period)
41      : Dated_Data(Time_Interval(Date(&period,source->Dates().Start()),
42                                 Date(&period,source->Dates().Stop())))