Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w14w8-002XTx-0G for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 16:00:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w14w6-004zjE-1V for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 16:00:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w14w5-004zj6-2Y for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 16:00:26 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w14w1-00000002V1Z-2x46 for pgsql-hackers@postgresql.org; Fri, 13 Mar 2026 16:00:26 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 61228EC060E; Fri, 13 Mar 2026 12:00:19 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Fri, 13 Mar 2026 12:00:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1773417619; x=1773504019; bh=50S2q0UCgCQsHz/7ej1I0qBK43h4jZeQ FdLd9bpJ4pg=; b=p6fNTOeVRGGWPiPtSMs3dy6vkHwwLgbNlU7VZ95Wjnk3kBPM WYTxpA8PzoDCbq7NqBheRWWyUIYNRC1fvIstEMYoGNeLbsQORbx4PnRiNd3XHO+p TIfoBhpiWHVvK/eA8U1N4xkH7MMH9Q+peTa9px4MQLp6bLCxapp0reO9MKIfpf9e ZnzC3PUFG5x4hBFB3xLuH2N4oY8S0IxQNHYKJghp0ptE8JJi9y0EvEsUpBW+f38n iFShZLHA1MEu6+tMvnIZnNXe8LPZ91tygQN/YCLyHZeIpkM2Nt3zwXeqfOgUkZHN KiwsRtcTOstTzjklfnRrM41JP+A0bDogC7RP5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1773417619; x= 1773504019; bh=50S2q0UCgCQsHz/7ej1I0qBK43h4jZeQFdLd9bpJ4pg=; b=r Cm5Niu+bm6mMvio4w4cIAuf/4oFkKYo4c8xfxANqSA6zesMhb3mLD6K8JvBhnnqj 0zXRtkV0lb2VDC7cmK89MGeJVlqL7Zk32j476+A9aKYazKXez+ejut/wedzMZyxs B7ZO3HqI3PPirHXL+ug0MlafLXPkxIt+09nO3PbsYIoQ5y9zUTrexx7GultD1bid +HJgSk8KT8e5S2gAPmL/xoxPycRBiTDUf2Y4SrSqMHa/Y6gA3Blkl4yUmVRzxXgf ffuLsRDXbhJ8YtYV0gdXFnM4rhbEVdquKyF/a983mT8mzZWvtWCtWqfBr0TiVSKc WYStOiYXCXCbJF3phk13w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvledttdekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgheqne cuggftrfgrthhtvghrnhepgffgkefhffelhfetueejudelvdejleduudehgffgffekvefg hfevkedutdfhjeegnecuffhomhgrihhnpegtphhprhgvfhgvrhgvnhgtvgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghr segvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohepfedpmhhouggvpehsmh htphhouhhtpdhrtghpthhtohepuggrnhhivghlseihvghsqhhlrdhsvgdprhgtphhtthho pehpohhsthhgrhgvshesjhgvlhhtvghfrdhnlhdprhgtphhtthhopehpghhsqhhlqdhhrg gtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Mar 2026 12:00:17 -0400 (EDT) Message-ID: Date: Fri, 13 Mar 2026 17:00:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Change copyObject() to use typeof_unqual To: Daniel Gustafsson Cc: Jelte Fennema-Nio , PostgreSQL Hackers References: <92f9750f-c7f6-42d8-9a4a-85a3cbe808f3@eisentraut.org> <68C5A719-919A-483D-96F9-7D59CEA6D519@yesql.se> Content-Language: de-DE, en-US From: Peter Eisentraut In-Reply-To: <68C5A719-919A-483D-96F9-7D59CEA6D519@yesql.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.03.26 14:03, Daniel Gustafsson wrote: >> On 13 Mar 2026, at 11:43, Peter Eisentraut 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.