Re: Change copyObject() to use typeof_unqual
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>,
Peter Eisentraut <peter@eisentraut.org>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-03-17T02:39:29Z
Lists: pgsql-hackers
Masahiko Sawada <sawada.mshk@gmail.com> writes: > I'm still encountering the following error while building from source > at commit f4af7849b3d when using autoconf: > execParallel.c:154:9: error: call to undeclared function > 'typeof_unqual'; ISO C99 and later do not support implicit function > declarations [-Wimplicit-function-declaration] > 154 | plan = copyObject(plan); > | ^ > I'm using Fedora 43 and gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7). Ugh, yeah, reproduced here. FTR, this platform has $ gcc --version gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7) $ clang --version clang version 21.1.8 (Fedora 21.1.8-4.fc43) While this version of clang doesn't like typeof_unqual, it does take __typeof_unqual__. So maybe we were premature to decide that we could prefer the typeof_unqual spelling. I can get it to build if I use __typeof_unqual__. > The issue doesn't happen when using meson+ninja. Per upthread, we don't have bitcode compilation working in the meson buildsystem, so we aren't trying to invoke clang in that case. regards, tom lane
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add some const qualifiers enabled by typeof_unqual change on copyObject
- 7724cb9935a9 19 (unreleased) landed
-
Hardcode typeof_unqual to __typeof_unqual__ for clang
- 2eb6cd327cae 19 (unreleased) landed
-
Clean up postgres_fdw/t/010_subscription.pl.
- f4af7849b3db 19 (unreleased) cited
-
Hardcode override of typeof_unqual for clang-for-bitcode
- 63275ce84d2f 19 (unreleased) landed
-
Make typeof and typeof_unqual fallback definitions work on C++11
- cd083b54bd67 19 (unreleased) landed
-
Change copyObject() to use typeof_unqual
- 59292f7aac72 19 (unreleased) landed
- 4cfce4e62c8f 19 (unreleased) landed
-
Fixes for C++ typeof implementation
- 9c05f152b5dd 19 (unreleased) landed
-
Support using copyObject in standard C++
- 1887d822f142 19 (unreleased) cited