https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125624

--- Comment #2 from Andreas F. Borchert <[email protected]> ---
I understand that this is not supported by the C++23 standard. Still, I am
wondering what is the point of supporting other optional types like
std::float128_t or std::bfloat16_t but silently delivering NaNs for
std::float16_t in case of g++ 15.2.0? The static_assert of g++ 16.1.0 is surely
better than that. Right now, libstdc++ of 15.2.0 is more surprising in this
aspect as necessary.

Added restrictions using concepts or requires-clauses are not required by the
standard but I still think that they would be preferable in comparison to
static asserts.

Reply via email to