tech-pkg archive

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

Re: c++20: require gcc12?



Martin Husemann <martin%duskware.de@localhost> writes:

> On Tue, Feb 11, 2025 at 09:11:08AM -0500, Greg Troxel wrote:
>> gcc10 takes c++20 but does not declare conformance.  gcc12 does.  (This
>> argues even more strongly for fixing gcc.mk to require 12.)  Is this a
>> bug in our gcc?  I would say it's an upstream issue -- but gcc says that
>> you need 12 to be compliant with c++20, so not really a bug.
>
> The gcc from pkgsrc does work: replacing g++ in your script with
> /usr/pkg/gcc10/bin/g++ (on a netbsd-9 machine) results in:
>
> STD 20:
> __cplusplus 201709

That is not working.  It provides 201709 for c++20, instead of a higher
value.

Or if it is working, bitcoin is buggy.


Home | Main Index | Thread Index | Old Index