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

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> The plugin doesn't complain about something in the headers, but about
> std::setjmp not exported from the std module.
> libstdc++-v3/src/c++23/std-clib.cc.in has
> // 17.13.3 <csetjmp>
> export C_LIB_NAMESPACE
> {
>   using std::jmp_buf;
>   using std::longjmp;
>   // setjmp macro not exported
> }
> Now, I believe on Linux there is no std::setjmp, just setjmp macro, and that 
> is
> what
> the standard requires too:
> http://eel.is/c++draft/csetjmp.syn

I see.  I can certainly file a bug report about this if this is deemed
useful

However, the error message is confusing:

/usr/include/iso/setjmp_iso.h:69:12: error: missing using std::setjmp;

Maybe "setjmp shouldn't be in std" or some such were clearer?

Reply via email to