This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc-3.2 dummyspit


typedef struct { } spinlock_t;

typedef struct {
        spinlock_t lock;
        unsigned pre_sequence;
        unsigned post_sequence;
} frlock_t;

frlock_t foo = (frlock_t) { (spinlock_t) { }, 0, 0 };   

t.c:10: initializer element is not constant
t.c:10: (near initialization for `foo')
t.c:10: initializer element is not constant


2.95.3 compiles it OK, as does 3.2 if the (spinlock_t) cast is
removed.

What's up?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]