* gcc-3.2 dummyspit
@ 2003-01-27 5:50 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2003-01-27 5:50 UTC (permalink / raw)
To: gcc
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-27 1:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27 5:50 gcc-3.2 dummyspit Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).