public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/9469: gcc-3.2 wont' compile a particular initializer
@ 2003-01-27 23:16 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2003-01-27 23:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 9469
>Category: c
>Synopsis: gcc-3.2 wont' compile a particular initializer
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 27 23:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: akpm@digeo.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
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 };
mnm:/home/akpm> /usr/local/gcc-3.2.1/bin/gcc -S t.c
t.c:10: initializer element is not constant
t.c:10: (near initialization for `foo')
t.c:10: initializer element is not constant
Removing the (spinlock_t) cast makes it go away. As
does using gcc-2.95.3.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-27 23:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27 23:16 c/9469: gcc-3.2 wont' compile a particular initializer akpm
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).