public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64049] New: Wrong code at -O3
@ 2014-11-24 13:23 bernd.edlinger at hotmail dot de
  2014-11-24 13:25 ` [Bug c++/64049] " bernd.edlinger at hotmail dot de
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2014-11-24 13:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64049

            Bug ID: 64049
           Summary: Wrong code at -O3
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de

the attached C++ program is mis-compiled with recent GCC trunk at -O3

g++ -O3 ValueHelper1.cpp ValueHelper2.cpp
./a.out
Assertion failed at ValueHelper1.cpp(9): Unexpected null pointer
Segmentation fault (core dumped)

which is not supposed to happen.

correct:
g++ -O2 ValueHelper1.cpp ValueHelper2.cpp
./a.out
text= Localized Text


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

end of thread, other threads:[~2014-12-08 19:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-24 13:23 [Bug c++/64049] New: Wrong code at -O3 bernd.edlinger at hotmail dot de
2014-11-24 13:25 ` [Bug c++/64049] " bernd.edlinger at hotmail dot de
2014-11-24 13:26 ` bernd.edlinger at hotmail dot de
2014-11-24 13:27 ` bernd.edlinger at hotmail dot de
2014-11-24 13:41 ` pinskia at gcc dot gnu.org
2014-11-24 14:22 ` bernd.edlinger at hotmail dot de
2014-11-24 14:25 ` bernd.edlinger at hotmail dot de
2014-11-24 14:25 ` bernd.edlinger at hotmail dot de
2014-11-24 14:26 ` bernd.edlinger at hotmail dot de
2014-11-24 14:31 ` bernd.edlinger at hotmail dot de
2014-11-24 16:24 ` [Bug ipa/64049] " rguenth at gcc dot gnu.org
2014-11-24 17:02 ` [Bug ipa/64049] [5 Regression] r215898 caused wrong " rguenth at gcc dot gnu.org
2014-12-06  0:40 ` edlinger at gcc dot gnu.org
2014-12-08 18:30 ` edlinger at gcc dot gnu.org
2014-12-08 19:05 ` edlinger 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).