Bug 16312 - with -Wall ICE on valid code, without -Wall OK
Summary: with -Wall ICE on valid code, without -Wall OK
Status: RESOLVED DUPLICATE of bug 16205
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 10:26 UTC by salinger
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description salinger 2004-07-01 10:26:40 UTC
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;
        }
};
Comment 1 Volker Reichelt 2004-07-01 11:06:34 UTC
It's a duplicate of PR 16205 and PR 16247.
Fortunately the bug has been fixed on 2004-06-28.

*** This bug has been marked as a duplicate of 16205 ***