Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0A4r-0001LM-0i for pgsql-committers@arkaria.postgresql.org; Mon, 17 Apr 2017 17:04:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d0A4q-0002ft-Jn for pgsql-committers@arkaria.postgresql.org; Mon, 17 Apr 2017 17:04:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d0A4p-0002fO-VP for pgsql-committers@postgresql.org; Mon, 17 Apr 2017 17:04:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d0A4n-0002cT-Al for pgsql-committers@postgresql.org; Mon, 17 Apr 2017 17:04:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3HH4Vmt007776; Mon, 17 Apr 2017 13:04:31 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix integer-overflow problems in interval comparison. In-reply-to: <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com> References: <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 17 Apr 2017 12:39:31 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7774.1492448671.1@sss.pgh.pa.us> Date: Mon, 17 Apr 2017 13:04:31 -0400 Message-ID: <7775.1492448671@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Peter Eisentraut writes: > On 4/5/17 23:51, Tom Lane wrote: >> Fix integer-overflow problems in interval comparison. > This is failing cpluspluscheck now because C++ does not have > _Static_assert, which is used in int128.h. Hmm. We could drop that assert, or move it to some .c file, or wrap it in "#ifndef __cplusplus" ... but really it seems like a more generic solution would be appropriate. This won't be the last time somebody tries to do that, what with our increasing use of inline functions. Maybe the definition of StaticAssertStmt should be tweaked based on __cplusplus? Or maybe the problem is cpluspluscheck's test methodology, ie you ought to run configure with CC=c++ before trying to compile the headers? regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers