This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc-3.2 dummyspit
- From: Andrew Morton <akpm at digeo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 26 Jan 2003 17:21:25 -0800
- Subject: 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?