Current-Users archive

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

GCC 12 needs -std=c++11

While cross-buidling NetBSD-current on macOS with clang, I end up with:

/dist/src/external/gpl3/gcc/dist/libcpp/ warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
  enum class kind {
/dist/src/external/gpl3/gcc/dist/libcpp/ error: unknown type name 'constexpr'
  constexpr uchar utf8_start = 0xe2;
/dist/src/external/gpl3/gcc/dist/libcpp/ error: expected ';' after top level declarator
  constexpr uchar utf8_start = 0xe2;

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?

Kind regards,

Home | Main Index | Thread Index | Old Index