This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug 12407] New: [3.4 regression] ICE with -pg
- From: bugzilla-daemon at dberlin dot org
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Sep 2003 05:12:59 -0400
- Subject: [Bug 12407] New: [3.4 regression] ICE with -pg
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12407
Summary: [3.4 regression] ICE with -pg
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/210328]
seen with HEAD 20030925, not seen with 3.3 20030909
The following code causes the compiler to SIGSEV in x86:
//////////////////// tst.cpp /////////////////////////////
#include <vector>
class A;
std::vector < A * > getA()
{
std::vector< A * > a;
return a;
}
//////////////////////////////////////////////////////////
Compiling with:
$ g++ -c -pg -c tst.cpp
tst.cpp: In function `std::vector<A*, std::allocator<A*> > getA()':
tst.cpp:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Compiling without the "-pg" switch works.