https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116127
--- Comment #2 from Tomer Vromen <tomerv at gmail dot com> --- Jakub, thanks for the quick answer! I see that this is a POSIX extension. I also see that according to cppreference, std::lgamma is "constexpr since C++26". I do wonder how that will work. Is there a constexpr replacement for __builtin_lgamma? Using __builtin_log(__builtin_tgamma(1000)) will not work due to overflow. If there isn't currently a constexpr version then maybe there should be. Sounds like it will be needed for C++26 support.