Talk:cpp/utility/program/setjmp


 * Upon return to the scope of setjmp, all accessible objects have the same values as they had when std::longjmp was executed, except for the non-volatile local variables in setjmp's scope, whose values are indeterminate.

Is this right? ANSI C says


 * All accessible objects have values as of the time longjmp was called, except that the values of objects of automatic storage duration that do not have volatile type and have been changed between the setjmp invocation and longjmp call are indeterminate.


 * indeed, well-spotted (although current ANSI C says two more things: it includes floating-point status flags and adds the no-brainer "that are local to the function containing the invocation...of setjmp") --Cubbi (talk) 03:27, 17 September 2015 (PDT)