This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46143] __attribute__((optimize)) emits wrong code
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Oct 2010 22:47:16 +0000
- Subject: [Bug c++/46143] __attribute__((optimize)) emits wrong code
- Auto-submitted: auto-generated
- References: <bug-46143-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46143
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-22 22:47:09 UTC ---
that program has two kinds of undefined behaviour I can see
not only do two wrongs not make a right, but attribute((optimize(0))) doesn't
make it right either
do you have a testcase that doesn't rely on dereferencing a non-dereferenceable
iterator?