Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: wordsmithing

...

The above code produces the following results when compiled with Clang 3.8 for Linux, demonstrating that the undefined behavior in this instance is to fail to program, on this platform, fails to destroy the local Counter instance when the execution of f() is terminated:. This is perfectly permissible as the behavior is undefined.

Code Block
Before setjmp(): Instances: 0
f(): Instances: 1
From longjmp(): Instances: 1
After longjmp(): Instances: 1

...