This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12421] New: [3.4 regression] ICE with -pg
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 15:39:02 -0000
- Subject: [Bug c++/12421] New: [3.4 regression] ICE with -pg
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12421
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.
------- Bug moved to this database by dberlin@gcc.gnu.org 2003-09-26 15:39 -------
This bug previously known as bug 12407 at http://dberlin.org/bugzilla/
http://dberlin.org/bugzilla/show_bug.cgi?id=12407
Originally filed under the gcc product and c++ component.