Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKxQq-00062U-Lq for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 20:26:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKxQp-0000L3-CF for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 20:26:36 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q97KQX9Q017067; Sun, 7 Oct 2012 16:26:33 -0400 (EDT) From: Tom Lane To: John Marino cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7588: pgsql 9.1 incompatible with zlib 1.27 In-reply-to: <5071E0C8.40205@marino.st> References: <13048.1349627764@sss.pgh.pa.us> <5071B902.6030505@marino.st> <14190.1349631338@sss.pgh.pa.us> <5071C248.5020206@marino.st> <15810.1349637294@sss.pgh.pa.us> <5071DBB0.8040107@marino.st> <16476.1349639653@sss.pgh.pa.us> <5071E0C8.40205@marino.st> Comments: In-reply-to John Marino message dated "Sun, 07 Oct 2012 22:06:32 +0200" Date: Sun, 07 Oct 2012 16:26:33 -0400 Message-ID: <17066.1349641593@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/51 X-Sequence-Number: 34351 John Marino writes: > Are you 100% sure that offsetof is evaluated at compile time? Is this > not part of section 6.6 that I quoted earlier? My copy of C99 sayeth (in section 7.17) offsetof(type, member-designator) which expands to an integer constant expression that has type size_t, the value of which is the offset in bytes, to the structure member (designated by member-designator), from the beginning of its structure (designated by type). If your version of gcc isn't treating it as an integer constant expression, you either have a bug in the compiler or a bug in your version of . And I will say once more that we have not encountered any other report of gcc having a problem with this code. regards, tom lane