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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Jonathan, thoughts on the library side?
> E.g. std::uncaught_exceptions is just declared in the header, but if it
> needs to be constexpr it needs some inline definition but for ABI reasons
> better should call the original function.  std::current_exception is also
> defined out of line, for constant evaluation it better use some helper
> builtin which returns void * and construct exception_ptr from that.

Interesting echoes of gnu_inline in this situation.

You mention that you already treat some of the functions as magic builtins, is
there a reason not to do that for these as well, and leave the library alone?

Reply via email to