Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKwva-0007HE-GN for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 19:54:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKwvX-0003zY-85 for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 19:54:18 +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 q97JsDWB016477; Sun, 7 Oct 2012 15:54:13 -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: <5071DBB0.8040107@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> Comments: In-reply-to John Marino message dated "Sun, 07 Oct 2012 21:44:48 +0200" Date: Sun, 07 Oct 2012 15:54:13 -0400 Message-ID: <16476.1349639653@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/50 X-Sequence-Number: 34350 John Marino writes: > Perhaps, you need to take a closer look at this. I guarantee that I > didn't do this for cosmetic reasons. GCC behavior changed with GCC 4.5 > on this topic. You should report it as a bug in whatever distro you're using, because the behavior did *not* change anywhere else, and the code you say your compiler is rejecting is clearly legal per C standard. sizeof() is a compile-time constant. regards, tom lane