Re: pgsql: tests: Add a test C++ extension module - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pgsql: tests: Add a test C++ extension module
Date
Msg-id CA+TgmoYaq3dO5JgArcQj6nBMUVJmPwJ-uqLaY-S+7p2z4N_tYg@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: tests: Add a test C++ extension module  (Jelte Fennema-Nio <postgres@jeltef.nl>)
List pgsql-hackers
On Wed, Jan 21, 2026 at 4:00 PM Jelte Fennema-Nio <postgres@jeltef.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: tests: Add a test C++ extension module
Next
From: Andres Freund
Date:
Subject: Likely undefined behavior with some flexible arrays