Current-Users archive

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

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



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


Home | Main Index | Thread Index | Old Index