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 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 11:
__cplusplus 201103
STD 14:
__cplusplus 201402
STD 17:
__cplusplus 201703
STD 20:
__cplusplus 201709
STD 23:
g++: error: unrecognized command-line option '--std=c++23'; did you mean '--std=c++03'?
test.sh: ./foo23: not found
Martin
Home |
Main Index |
Thread Index |
Old Index