aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access20.C
blob: 96093dc019037cbecae5c3cf3dd8820cd775f63b (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
// PRMS Id: 6662
// Bug: we crash trying to check the access on anglesSinesCosines.
// Build don't link:

#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
    } ;
} ;