This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12421] New: [3.4 regression] ICE with -pg


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]