This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22293] New: [4.0/4.1 regression] ICE declaring destructor as friend
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2005 10:39:03 -0000
- Subject: [Bug c++/22293] New: [4.0/4.1 regression] ICE declaring destructor as friend
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Since gcc 4.0.0 the following code snippet causes a segfault:
================================
struct A
{
friend ~A();
};
=================================
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The compiler used to give a warning before:
bug.cc:3: warning: member functions are implicitly friends of their class
--
Summary: [4.0/4.1 regression] ICE declaring destructor as friend
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22293