The following invalid code snippet causes an ICE: =============================== struct A { virtual static ~A(); }; =============================== ' Segmentation fault Please submit a full bug report, [etc.] This a regression from GCC 3.4.x. Before we got the error message: bug.cc:3: error: member `A' cannot be declared both virtual and static which is not quite correct, but tolerable. Will post patch soon.
Subject: Bug 26071 Author: reichelt Date: Wed Feb 8 11:21:27 2006 New Revision: 110751 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110751 Log: PR c++/26071 * decl.c (grokdeclarator): Set dname also for destructor. * g++.dg/other/virtual2.C: New test. Added: trunk/gcc/testsuite/g++.dg/other/virtual2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog
Subject: Bug 26071 Author: reichelt Date: Wed Feb 8 11:23:17 2006 New Revision: 110752 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110752 Log: PR c++/26071 * decl.c (grokdeclarator): Set dname also for destructor. * g++.dg/other/virtual2.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/virtual2.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/decl.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
Subject: Bug 26071 Author: reichelt Date: Wed Feb 8 11:26:25 2006 New Revision: 110753 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110753 Log: PR c++/26071 * decl.c (grokdeclarator): Set dname also for destructor. * g++.dg/other/virtual2.C: New test. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/virtual2.C Modified: branches/gcc-4_0-branch/gcc/cp/ChangeLog branches/gcc-4_0-branch/gcc/cp/decl.c branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
Fixed on mainline, 4.1 branch, and 4.0 branch.