This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35140] wrong result due to -O2 optimization in combination with std::list
- From: "basti at fkp dot tu-darmstadt dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Feb 2008 16:32:31 -0000
- Subject: [Bug c++/35140] wrong result due to -O2 optimization in combination with std::list
- References: <bug-35140-15747@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from basti at fkp dot tu-darmstadt dot de 2008-02-08 16:32 -------
One can even omit the helper class sample and directly use a list<size_t >,
bug is still there!!!
the above mentioned work-around with -fno-strict-aliasing works,
but still...
makes my kinda nervous about all my codes...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35140