public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64724] New: C++ loop with -O3 optimization produces segfault while -O2 is fine
@ 2015-01-22  4:53 aprokop at sandia dot gov
  2015-01-22  4:53 ` [Bug c++/64724] " aprokop at sandia dot gov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aprokop at sandia dot gov @ 2015-01-22  4:53 UTC (permalink / raw)
  To: gcc-bugs

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".


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-22  7:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22  4:53 [Bug c++/64724] New: C++ loop with -O3 optimization produces segfault while -O2 is fine aprokop at sandia dot gov
2015-01-22  4:53 ` [Bug c++/64724] " aprokop at sandia dot gov
2015-01-22  4:55 ` pinskia at gcc dot gnu.org
2015-01-22  6:33 ` aprokop at sandia dot gov
2015-01-22  7:38 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).