Re: minimum required -std=c++NN?

Greg Troxel <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
Christoph Badura <[email protected]> writes:

> On Fri, Jun 21, 2024 at 03:05:42PM -0400, Greg Troxel wrote:
>>   C++20 is new, but that's how it is.  As for that file vs all of gcc,
>>   what does gcc's build instructions say?  If they don't, they are
>>   buggy.
>
> I've not found anything in the build instructions that mentions that file
> (or directory) specifically neither a mention of c++20.
>
> The build instructions say that gcc 12 needs a c++11 compiler.
>
> Apparently both gcc10 and clang 14 know enough about c++20 in c++11 mode
> to compile the file but warn about the c++20 constructs.

I would say that if gcc12 documents that it needs c++11 and we use
--std=c++11 and gcc10 warns about c++20 stuff, then either gcc10 or
gcc12 is buggy!

I think we therefore just have to ignore the warnings.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.