From: Peter Eisentraut <peter@eisentraut.org>
To: Melanie Plageman <melanieplageman@gmail.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
Date: Sun, 15 Mar 2026 21:52:09 +0100
Message-ID: <250c096f-f762-43d5-a05c-5d017dd6affa@eisentraut.org> (raw)
In-Reply-To: <CAAKRu_YBRnM0VuREmBL7coMBG4z016qhVS_usBH4FeVkAETc1g@mail.gmail.com>
References: <E1w1fGs-000Eon-0O@gemulon.postgresql.org>
<CAAKRu_YBRnM0VuREmBL7coMBG4z016qhVS_usBH4FeVkAETc1g@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
In-Reply-To: <250c096f-f762-43d5-a05c-5d017dd6affa@eisentraut.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox