Re: Change copyObject() to use typeof_unqual - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Change copyObject() to use typeof_unqual
Date
Msg-id DH504CLRFOBW.3FKN0ZDCG3U1S@jeltef.nl
Whole thread Raw
In response to Re: Change copyObject() to use typeof_unqual  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Change copyObject() to use typeof_unqual
Re: Change copyObject() to use typeof_unqual
List pgsql-hackers
On Tue Mar 17, 2026 at 3:39 AM CET, Tom Lane wrote:
> 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.

Hmmm, that makes sense. How about this patch to at least keep the
all the logic related to this in one place? I was able to reproduce this
error using the following flags, and this fixes the issue for me.

CC=clang-21 CXX=clang++-21 CFLAGS=-std=c23 BITCODE_CFLAGS=-std=gnu17 CLANG=clang-19 LLVM_CONFIG=llvm-config-19


Attachment

pgsql-hackers by date:

Previous
From: Antonin Houska
Date:
Subject: Re: Adding REPACK [concurrently]
Next
From: shveta malik
Date:
Subject: Re: Skipping schema changes in publication