summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access20.C
blob: 71ca1375f9972e4cc84be7ee5f2264789d9cbda2 (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
29
30
31
32
33
34
35
36
37
38
39
// { dg-do assemble  }
// PRMS Id: 6662
// Bug: we crash trying to check the access on anglesSinesCosines.

#define Double double

class GCTransform
{
  protected:
    struct angle
    {
	Double phi1 ;
	Double phi2 ;
    } ;

    struct sineAndCosine
    {
	Double cosine1 ;
	Double cosine2 ;
	Double sine1 ;
	Double sine2 ;
    } ;

    union anglesSinesCosines
    {
	struct angle a ;
	struct sineAndCosine siCo ;
    } ;
};

class GCTransTransmit : public GCTransform
{
  protected:

    struct GCTransTransmitDataTemp
    {
	union anglesSinesCosines t ; // causes abort
    } ;
} ;