This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32777] New: wrong-code with -O -ftracer
- From: "wouter dot vermaelen at scarlet dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2007 12:56:49 -0000
- Subject: [Bug c++/32777] New: wrong-code with -O -ftracer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
> cat bug.cc
#include <vector>
int main()
{
std::vector<int> v(1);
}
> g++ -O -ftracer bug.cc
> ./a.out
Segmentation fault (core dumped)
> gdb ./a.out core
(gdb) bt
#0 0x00002addeaae2f3f in __gnu_cxx::__pool<true>::_M_reclaim_block ()
from /usr/lib/libstdc++.so.6
#1 0x0000000000400f71 in __gnu_cxx::__mt_alloc<int,
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::deallocate
(this=0x601560, __p=0x6022a8, __n=1)
at
/home/wouter/gcc/local/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/ext/mt_allocator.h:728
#2 0x0000000000400ae8 in main ()
at
/home/wouter/gcc/local/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:134
--
Summary: wrong-code with -O -ftracer
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wouter dot vermaelen at scarlet dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32777