https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106843
--- Comment #7 from Dave A ---
-fsanitize=address balked on the executable even without the -O2, even though
it printed out the correct values. The stack must have been initialzed and the
values persisted after the variable went out of scope.
I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106843
--- Comment #1 from Dave A ---
gcc -dumpmachine
x86_64-slackware-linux
gcc -v
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/11.2.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/11.2.0/lto-wrapper
T
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106843
Bug ID: 106843
Summary: gcc with -O2 corrupt data on stack
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c