public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17339] New: regression in offsetof handling
@ 2004-09-06 20:39 marcus at jet dot franken dot de
2004-09-06 20:40 ` [Bug c/17339] " marcus at jet dot franken dot de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: marcus at jet dot franken dot de @ 2004-09-06 20:39 UTC (permalink / raw)
To: gcc-bugs
Following testcase no longer compiles since some days.
The slightly off offsetof magic used here no longer works.
--
Summary: regression in offsetof handling
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/17339] regression in offsetof handling
2004-09-06 20:39 [Bug c/17339] New: regression in offsetof handling marcus at jet dot franken dot de
@ 2004-09-06 20:40 ` marcus at jet dot franken dot de
2004-09-06 20:41 ` marcus at jet dot franken dot de
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marcus at jet dot franken dot de @ 2004-09-06 20:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From marcus at jet dot franken dot de 2004-09-06 20:40 -------
Created an attachment (id=7056)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7056&action=view)
foo.i
gcc -c foo.i
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/17339] regression in offsetof handling
2004-09-06 20:39 [Bug c/17339] New: regression in offsetof handling marcus at jet dot franken dot de
2004-09-06 20:40 ` [Bug c/17339] " marcus at jet dot franken dot de
@ 2004-09-06 20:41 ` marcus at jet dot franken dot de
2004-09-06 20:54 ` jsm at polyomino dot org dot uk
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marcus at jet dot franken dot de @ 2004-09-06 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From marcus at jet dot franken dot de 2004-09-06 20:41 -------
Testcase was extracted from WINE, fails with:
$ gcc -c /home/marcus/foo.i
/home/marcus/foo.i:4: warning: initializer element is not computable at load
time
/home/marcus/foo.i:4: error: initializer element is not computable at load
time
/home/marcus/foo.i:4: error: (near initialization for `r.off')
$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/17339] regression in offsetof handling
2004-09-06 20:39 [Bug c/17339] New: regression in offsetof handling marcus at jet dot franken dot de
2004-09-06 20:40 ` [Bug c/17339] " marcus at jet dot franken dot de
2004-09-06 20:41 ` marcus at jet dot franken dot de
@ 2004-09-06 20:54 ` jsm at polyomino dot org dot uk
2004-09-06 21:07 ` giovannibajo at libero dot it
2004-09-07 8:21 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-09-06 20:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm at polyomino dot org dot uk 2004-09-06 20:54 -------
Subject: Re: regression in offsetof handling
On Mon, 6 Sep 2004, marcus at jet dot franken dot de wrote:
> --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7056&action=view)
This isn't strictly conforming code; there is no requirement that this
code be accepted; but it should be accepted as a symbolic difference
constant expression, a GNU extension.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/17339] regression in offsetof handling
2004-09-06 20:39 [Bug c/17339] New: regression in offsetof handling marcus at jet dot franken dot de
` (2 preceding siblings ...)
2004-09-06 20:54 ` jsm at polyomino dot org dot uk
@ 2004-09-06 21:07 ` giovannibajo at libero dot it
2004-09-07 8:21 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-06 21:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-09-06 21:07 -------
Confirmed.
Notice that this is not standard C as JSM said, it is just a GNU extension.
Please, use the standard offsetof() macro instead of rolling up your own, that
will always work.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |3.5.0
Last reconfirmed|0000-00-00 00:00:00 |2004-09-06 21:07:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/17339] regression in offsetof handling
2004-09-06 20:39 [Bug c/17339] New: regression in offsetof handling marcus at jet dot franken dot de
` (3 preceding siblings ...)
2004-09-06 21:07 ` giovannibajo at libero dot it
@ 2004-09-07 8:21 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-07 8:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-07 08:20 -------
Really this is invalid and should not be a GNU extension as it was not documented until just recently,
just before the removal of it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17339
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-07 8:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-06 20:39 [Bug c/17339] New: regression in offsetof handling marcus at jet dot franken dot de
2004-09-06 20:40 ` [Bug c/17339] " marcus at jet dot franken dot de
2004-09-06 20:41 ` marcus at jet dot franken dot de
2004-09-06 20:54 ` jsm at polyomino dot org dot uk
2004-09-06 21:07 ` giovannibajo at libero dot it
2004-09-07 8:21 ` pinskia at gcc dot gnu dot org
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).