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 1vSdDH-002FkW-1f for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 15:31:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vSdDG-0003iG-0g for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 15:31:46 +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 1vSdDF-0003i8-2h for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 15:31:46 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vSdDD-003rvZ-2K for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 15:31:45 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-37b9d8122fdso38416571fa.3 for ; Mon, 08 Dec 2025 07:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1765207902; x=1765812702; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FGpPSYNuA0wKJ+gkR+oEn6zQLie5aVuiAbo53Eg0rLQ=; b=XDsi+5qBuuWmIpoo13G46OFwjDFQOBOl9boO/Er0W/eG7nzGPXJiWrBtJYc+oeHIM5 GtpWWefQgoWNgAXLnBSqHBPleXl1V0KkkOjNlWKfQk8+s/44mgu7L5Noj/4KMGAvZY0f qg0iVKQWGfBCRLrp61HQZlkguJRFWNUp5sw1/43eYaukPURlJuYrFxj2kY37HGN4SCHA yDNa0HjDnVrXbhHi9IuB7pUorzAITFV7BWc80qRQ2f124gkoLIHiAxw5tLl+B/JWT/Lc OF7bYBQ5+U5K0e+b+77ja5jw+q7gEbnrtR51GdSZTztloPQazvHa27zdWNR7TXyFaDbg uJcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765207902; x=1765812702; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FGpPSYNuA0wKJ+gkR+oEn6zQLie5aVuiAbo53Eg0rLQ=; b=vlBJgH4o2JxeerSeg62m+8bKJ58Az9JfVj/M0+NwLD2qOKdQ7d5auAKJ4DUBZ2DTB6 nqfXbeFZHuy1ai2EOCHB44t8ayWSPaoFirg6Ff8K6z0cRkvTrn+c+mVz6+EXFUKviPX7 povwq9kp9HTlBgoufz9uEOyfZBOuSmik9USEa91BZ/sr1zrX0x4LsEnQjGyoBlD6Qt1r wgSdYDve54aStFfnT4VcEXCSdfLP0jmQZJ9Y7gEnHLtqG3ZHGHaSPqC3xcJwJyslkhgu 23sQcWeVuG9PC20xyK+GS9ObTXE/j43XHPUd9eJrNv6I2DR4pvzJvv4nEjNLNVMKu6rM y7vw== X-Forwarded-Encrypted: i=1; AJvYcCVBUAZwl03LZJAuLS6OqmjXowleG7+7mH1vrQJ0d7MXBiaMAANMvuGKQTV7Cw+iZ6G5s+veoYLKLPs6VBnN@lists.postgresql.org X-Gm-Message-State: AOJu0YzU6AjiY2sevoTON1ugMwePVpdDHx6wU8FsRlXqp6riU0ggYY8D FMLQwxOg/DbxUkLxqaeNje2IgmeS/JisKBlw8sxvBDtY/fCPqbtDJfRdQvdgzXxckGf7spkmGFB TiXoRjhJc5Ifj68xYpBhJ1ysx0h8DbWjTa7h5fGbrfA== X-Gm-Gg: ASbGnct0X5QYE1qe9ZOLACJ2+5KNsteqolQTYOke/Cp6m7dIid8bnYc1N+bdqz/1XG1 Q5Py3eHu9U0YTKD78WRAUmihfJPZLi+c92+9qo9vIJPGqNA4tzlt8+rN2TPCrXHo4BrRgiC5xd7 71reemzjbGMXaD9FHfb57BJFmJ+M5VxMreIl5LWbdAD1TScrkbTf249G93jE7gObfesyzYg6OLI exULKQK5/M0lTPeqKTdtvWzlZkFHj5Rj+oV1usK4bpoXI9/7vOcm6NivEvAON7rgL7Gmw== X-Google-Smtp-Source: AGHT+IHhjBlHrI//X2zERkrNJJJ07fPv+HNVzDtMQuDgs84EC/1JOlFEvXAWdRspJvGPbZp/RR5CHCTYxfj8j5uCNXc= X-Received: by 2002:a05:6512:b08:b0:597:d7dc:b7ce with SMTP id 2adb3069b0e04-598853bf696mr2784146e87.30.1765207901868; Mon, 08 Dec 2025 07:31:41 -0800 (PST) MIME-Version: 1.0 References: <2844370.1765136707@sss.pgh.pa.us> <2998351.1765205466@sss.pgh.pa.us> In-Reply-To: <2998351.1765205466@sss.pgh.pa.us> From: Jelte Fennema-Nio Date: Mon, 8 Dec 2025 16:31:30 +0100 X-Gm-Features: AQt7F2rKjKqWeM3-2YekCVCe2dBcbp2XDFsuYqn1F9uzOFXYQy1YMSZRuQMnaRM Message-ID: Subject: Re: Make copyObject work in C++ To: Tom Lane Cc: Peter Eisentraut , PostgreSQL Hackers , Thomas Munro Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 8 Dec 2025 at 15:51, Tom Lane wrote: > > Peter Eisentraut writes: > > AFAICT, both gcc and clang support typeof in C++ mode as well. So this > > kind of renaming could be confusing. > > Hm, if that's true then we should not have to do anything ... > so why is Jelte reporting a problem? Seems it's related to -std=c++17 vs -std=gnu++17. I was compiling my code with the former, which throws the error in question[1]. Compiling with the latter works fine[2]. So I guess it depends what we want to require from C++ extensions. Should we require them to compile with gnu extensions? My opinion on that would be no. [1]: https://godbolt.org/z/fz567hs1r [2]: https://godbolt.org/z/cq1se55bn