This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16312] New: with -Wall ICE on valid code, without -Wall OK
- From: "salinger at sun dot felk dot cvut dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2004 10:26:47 -0000
- Subject: [Bug c++/16312] New: with -Wall ICE on valid code, without -Wall OK
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GNU C++ version 3.5.0 20040627 (experimental) (i686-pc-linux-gnu)
Configured with: ../configure --prefix=/tmp --enable-threads=posix
--enable-languages=c++ --enable-version-specific-runtime-libs
The following code compiled with "g++ -Wall" qives:
x.cc: In destructor `aaa::~aaa()':
x.cc:14: internal compiler error: Segmentation fault
Wthout "-Wall" it compiles ok.
class xxx
{
public:
~xxx(){}
};
class aaa
{
public:
xxx* v;
~aaa()
{
delete[] v;
}
};
--
Summary: with -Wall ICE on valid code, without -Wall OK
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: salinger at sun dot felk dot cvut dot cz
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16312