tech-pkg archive

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

Re: Some build breakage to investigate



[first attempt greylisted]

On Thu, Sep 18, 2025 at 07:46:24AM +0200, Benny Siegert wrote:
> Here is some build breakage that someone(TM) should look into:
>
>
> /usr/include/g++/type_traits:2242:38: error: 'int' is not an enumeration type
> typedef __underlying_type(_Tp) type;

That build failure happened with gcc 7.5. This fix looks promising:


  Fix check_op(s) compilation failures on gcc 8 which eagerly tries to
  instantiate std::underlying_type for non-num types. Before cpp20 using
  std::underlying_t on non enum types is undefined behaviour.

I don't have NetBSD 9 / old gcc around to test...


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index