15 ms·
It is a C interface. It is implicitly noexcept. I filed bugs against both GCC and LLVM requesting warnings when someone passes a non-noexcept C++ function point
by ryao 2y ago
It is a C interface. It is implicitly noexcept. I filed bugs against both GCC and LLVM requesting warnings when someone passes a non-noexcept C++ function pointer to either a C function or to a C++ noexcept function:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118263 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118263
https://github.com/llvm/llvm-project/issues/121427 https://github.com/llvm/llvm-project/issues/121427
Perhaps the C++ standards committee should specify that doing this should cause a compiler failure, rather than a warning.
- cryptonector 2y agoThanks for checking, clarifying, and filing those bugs!