[LLVMbugs] [Bug 11987] Should static variable roll back it's value when use setjmp()/longjmp() with Clang -O option?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 16 17:29:32 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11987
Eli Friedman <sharparrow1 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |sharparrow1 at yahoo.com
Resolution|INVALID |
--- Comment #3 from Eli Friedman <sharparrow1 at yahoo.com> 2012-02-16 19:29:32 CST ---
Reopening. Chris, the C standard says "All accessible objects have values, and
all other components of the abstract machine have state, as of the time the
longjmp function was called, except that the values of objects of automatic
storage duration [...]". Therefore, the value of a static variable should be
stable across setjmp/longjmp.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list