OSDN Git Service

2003-01-08 Larin Hennessey <larin@science.oregonstate.edu>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / access20.C
1 // PRMS Id: 6662
2 // Bug: we crash trying to check the access on anglesSinesCosines.
3 // Build don't link:
4
5 #define Double double
6
7 class GCTransform
8 {
9   protected:
10     struct angle
11     {
12         Double phi1 ;
13         Double phi2 ;
14     } ;
15
16     struct sineAndCosine
17     {
18         Double cosine1 ;
19         Double cosine2 ;
20         Double sine1 ;
21         Double sine2 ;
22     } ;
23
24     union anglesSinesCosines
25     {
26         struct angle a ;
27         struct sineAndCosine siCo ;
28     } ;
29 };
30
31 class GCTransTransmit : public GCTransform
32 {
33   protected:
34
35     struct GCTransTransmitDataTemp
36     {
37         union anglesSinesCosines t ; // causes abort
38     } ;
39 } ;