Re: pgsql: tests: Add a test C++ extension module

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: tests: Add a test C++ extension module
Date: 2026-01-21 21:16:26
Message-ID: CA+TgmoYaq3dO5JgArcQj6nBMUVJmPwJ-uqLaY-S+7p2z4N_tYg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Wed, Jan 21, 2026 at 4:00 PM Jelte Fennema-Nio <postgres(at)jeltef(dot)nl> wrote:
> Seems like the same error as Peter Smith. So I guess clang 15 doesn't
> use C++11 by default. Did you try if my proposed patch solves it?
> Another way of fixing your problem would have been:
> CXX='/path/to/os-version/clang -std=gnu++11'

Oh, I didn't realize that it was the same problem. I've now tested
your patch and I find that it makes the build work for me without
needing to set CXX. IOW, yes, it does fix the problem.

The worst part about this, IMHO, is that the error message was totally
impenetrable. But I guess we can't do much about that.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Smith 2026-01-21 22:22:19 Re: pgsql: tests: Add a test C++ extension module
Previous Message Tom Lane 2026-01-21 21:13:14 Re: pgsql: tests: Add a test C++ extension module

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2026-01-21 21:49:39 Likely undefined behavior with some flexible arrays
Previous Message Tom Lane 2026-01-21 21:13:14 Re: pgsql: tests: Add a test C++ extension module