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++/16312] New: with -Wall ICE on valid code, without -Wall OK


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


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