Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11 - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
Date
Msg-id 250c096f-f762-43d5-a05c-5d017dd6affa@eisentraut.org
Whole thread Raw
In response to Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11  (Melanie Plageman <melanieplageman@gmail.com>)
List pgsql-committers
On 15.03.26 16:28, Melanie Plageman wrote:
> On Sun, Mar 15, 2026 at 2:48 AM Peter Eisentraut <peter@eisentraut.org> wrote:
>>
>> Make typeof and typeof_unqual fallback definitions work on C++11
>>
>> These macros were unintentionally using C++14 features. This replaces
>> them with valid C++11 code.
> 
> Seems like this broke at least canebrake [1]
> 
> /home/bf/bf-build/canebrake/HEAD/pgsql.build/../pgsql/src/backend/bootstrap/bootstrap.c:1150:3:
> error: call to undeclared function '__typeof_unqual__'; ISO C99 and
> later do not support implicit function declarations
> [-Wimplicit-function-declaration]
> /home/bf/bf-build/canebrake/HEAD/pgsql.build/../pgsql/src/backend/bootstrap/bootstrap.c:1150:3:
> error: expected expression

Please see discussion here: 
https://www.postgresql.org/message-id/ff129805-1516-478a-a438-145880165c58%40eisentraut.org




pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix small memory leak in get_dbname_oid_list_from_mfile().
Next
From: Tom Lane
Date:
Subject: pgsql: Save a few bytes per CatCTup.