This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36768] New: Segmentation fault with -fprofile-arcs -O2
- From: "gcc at dpinol dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2008 07:33:14 -0000
- Subject: [Bug c++/36768] New: Segmentation fault with -fprofile-arcs -O2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
The code at the bottom compiled with this line
gcc -fprofile-arcs -O2 -c kk.cpp
causes this crash
gcc: Internal error: Segmentation fault (program cc1plus)
It occurs on both:
* Suse 11.0 with gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch
revision 135036] (rpms: gcc43-4.3.1_20080507-6.1 and gcc-c++-4.3-39.1)
* gcc 4.3.1 compiled with default options on Suse 10.2
best regards
#include <vector>
class PathElement {
public:
float a;
~PathElement() {}
};
class PathPlanning {
public:
std::vector<PathElement> v;
PathPlanning();
};
PathPlanning offset2[2];
--
Summary: Segmentation fault with -fprofile-arcs -O2
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at dpinol dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36768