summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash51.C
blob: 0c4e0beabe02ceb23b189a23c255f7cf3fe112dd (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
// { dg-do assemble  }
// GROUPS passed old-abort
class obj;

typedef obj *obj_t;

class obj {
public:
    obj( const obj& o );
};   

extern obj nowhere;

class set: public obj {
    unsigned  bit_vector;
public:
    set( const obj& o );
    set&      operator|=( const int q );
};   

enum pin_enum { E_F, O_C, O_D, O_S, P_D, P_U, R, T, A, C };

set t_q = ( ( ( ( ( ( set( nowhere ) |= E_F ) |= O_C ) |= O_D ) |= O_S )
              |= P_U ) |= P_D ) |= T;