[Bug c++/40764] -O3 gives wrong behaviour, no opt. OK

2009-07-16 Thread vielhaber at gmail dot com
--- Comment #5 from vielhaber at gmail dot com 2009-07-16 10:01 --- It was an index out of range error. Now, -O0 and -O3 both work as expected. -- vielhaber at gmail dot com changed: What|Removed |Added

[Bug c++/40764] -O3 gives wrong behaviour, no opt. OK

2009-07-16 Thread vielhaber at gmail dot com
--- Comment #4 from vielhaber at gmail dot com 2009-07-16 09:59 --- Created an attachment (id=18204) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18204&action=view) g++ -version -- vielhaber at gmail dot com changed: What|Removed

[Bug c++/40764] -O3 gives wrong behaviour, no opt. OK

2009-07-15 Thread vielhaber at gmail dot com
--- Comment #3 from vielhaber at gmail dot com 2009-07-15 11:43 --- Created an attachment (id=18200) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18200&action=view) The C++ source with comments. Comments in lines 180 describe the erroneous behaviour. Output line starti

[Bug c++/40764] -O3 gives wrong behaviour, no opt. OK

2009-07-15 Thread vielhaber at gmail dot com
--- Comment #2 from vielhaber at gmail dot com 2009-07-15 11:32 --- Created an attachment (id=18199) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18199&action=view) The .i file without optimization -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40764

[Bug c++/40764] -O3 gives wrong behaviour, no opt. OK

2009-07-15 Thread vielhaber at gmail dot com
--- Comment #1 from vielhaber at gmail dot com 2009-07-15 11:31 --- Created an attachment (id=18198) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18198&action=view) The .i with -O3 on. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40764

[Bug c++/40764] New: -O3 gives wrong behaviour, no opt. OK

2009-07-15 Thread vielhaber at gmail dot com
gcc dot gnu dot org ReportedBy: vielhaber at gmail dot com GCC host triplet: ??? intel x86 (AMD), Ubuntu 9.04, What do you want me to enter h http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40764