public inbox for [email protected]
help / color / mirror / Atom feedFrom: Peter Eisentraut <[email protected]>
To: Daniel Gustafsson <[email protected]>
Cc: Jelte Fennema-Nio <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: Change copyObject() to use typeof_unqual
Date: Fri, 13 Mar 2026 17:00:15 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<CAGECzQSxqAgF4YA_2C3mBKoTJ1-Mc3uVMAe2AgLjibnv4Ltkuw@mail.gmail.com>
<[email protected]>
<[email protected]>
On 13.03.26 14:03, Daniel Gustafsson wrote:
>> On 13 Mar 2026, at 11:43, Peter Eisentraut <[email protected]> wrote:
>
>> I committed this and it still fails, but the failure is now narrower. There is a failure on buildfarm member taipan because it uses an unusual combination of gcc and clang (the gcc is much newer than clang). The only sensible workaround I could think of is a hardcoded override based on the clang version, as in the attached patch. And alternative is that we decide that we don't want to support this combination, meaning that we would effectively require that clang is approximately as-old-or-newer than gcc.
>
> I ran into this as well on clang 15 via XCode with no gcc involved:
>
> ../src/test/modules/test_cplusplusext/test_cplusplusext.cpp:41:22: error: no template named 'remove_reference_t' in namespace 'std'; did you mean 'remove_reference'?
> RangeTblRef *copy = copyObject(nodec);
> ^~~~~~~~~~~~~~~~~
Jelte,
I read here
https://en.cppreference.com/w/cpp/types/remove_reference.html
that remove_reference_t is actually in C++14, which might explain this
failure, if the compiler is in C++11 mode.
I don't understand the difference between remove_reference and
remove_reference_t.
view thread (23+ messages) latest in thread
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Change copyObject() to use typeof_unqual
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox