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

From Melanie Plageman
Subject Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
Date
Msg-id CAAKRu_YBRnM0VuREmBL7coMBG4z016qhVS_usBH4FeVkAETc1g@mail.gmail.com
Whole thread
In response to pgsql: Make typeof and typeof_unqual fallback definitions work on C++11  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
List pgsql-committers
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

- Melanie

[1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?dt=2026-03-13+20%3A54%3A31&nm=canebrake



pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Save vmbuffer in heap-specific scan descriptors for on-access pr
Next
From: Andrew Dunstan
Date:
Subject: pgsql: pg_restore: Remove dead code in restore_all_databases()