[Bug 12407] New: [3.4 regression] ICE with -pg
bugzilla-daemon@dberlin.org
bugzilla-daemon@dberlin.org
Fri Sep 26 11:14:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list