[Bug c++/64724] New: C++ loop with -O3 optimization produces segfault while -O2 is fine
aprokop at sandia dot gov
gcc-bugzilla@gcc.gnu.org
Thu Jan 22 04:53:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64724
Bug ID: 64724
Summary: C++ loop with -O3 optimization produces segfault while
-O2 is fine
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: aprokop at sandia dot gov
$ gcc -v
Using built-in specs.
COLLECT_GCC=/home/aprokop/local/opt/gcc-4.9.2/bin/gcc
COLLECT_LTO_WRAPPER=/home/aprokop/local/opt/gcc-4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.9.2/configure
--prefix=/home/aprokop/local/opt/gcc-4.9.2 --enable-gold
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.9.2 (GCC)
I've tried 4.9.1, 4.9.2 and the trunk versions. The attached code results in
segfault. Valgrind generates "General protection fault".
More information about the Gcc-bugs
mailing list