| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
| Cc: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11 |
| Date: | 2026-03-15 20:52:09 |
| Message-ID: | 250c096f-f762-43d5-a05c-5d017dd6affa@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
On 15.03.26 16:28, Melanie Plageman wrote:
> On Sun, Mar 15, 2026 at 2:48 AM Peter Eisentraut <peter(at)eisentraut(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-03-15 22:05:46 | pgsql: Save a few bytes per CatCTup. |
| Previous Message | Tom Lane | 2026-03-15 19:24:10 | pgsql: Fix small memory leak in get_dbname_oid_list_from_mfile(). |