tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: c++20: require gcc12?



On Tue, Feb 11, 2025 at 05:54:06PM +0100, Martin Husemann wrote:
> STD 20:
> __cplusplus 201709

Ok, now I got it :-)

#elif __cplusplus < 202002L
#error "This is not a C++20 compiler"

... is the configure test - and the gcc10 pkg fails that.
And (of course) the base gcc from netbsd-10 fails the same way.
Since this is the canonical way to have autoconf test for C++20 support,
I guess we really need to enforce a newer gcc.

Martin


Home | Main Index | Thread Index | Old Index