From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9156 invoked by alias); 4 Jul 2005 10:39:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9127 invoked by uid 48); 4 Jul 2005 10:39:03 -0000 Date: Mon, 04 Jul 2005 10:39:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050704103903.22293.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22293] New: [4.0/4.1 regression] ICE declaring destructor as friend X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg00319.txt.bz2 List-Id: 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