Re: GCC 12 needs -std=c++11

Christoph Badura <[email protected]>
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Fri, Jun 21, 2024 at 02:31:48PM +0200, Adam wrote:
> While cross-buidling NetBSD-current on macOS with clang, I end up with:
> 
> /dist/src/external/gpl3/gcc/dist/libcpp/lex.cc:1168:8: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
>   enum class kind {
>        ^
> [etc.]

Where exactly in the build are you seeing that.  In my builds I've been
seing that only in the build of host-libcpp from the "do-build" target
in src/Makefile.

> My work-around is to use HOST_CXXFLAGS="-std=c++11". Maybe it should
> be set somewhere else in the code, so other users won't encounter the
> error?

Does the patch that I proposed on tech-toolchain help?

--chris
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.