The following valid code snippet triggers an ICE since GCC 3.1: ============================================ struct A { void operator delete[] (void*, ...); }; ============================================ bug.cc:2: internal compiler error: Segmentation fault Please submit a full bug report, [etc.]
Patch submitted here: http://gcc.gnu.org/ml/gcc-patches/2008-03/msg00527.html
Subject: Bug 35317 Author: simartin Date: Sat Jun 14 00:19:25 2008 New Revision: 136774 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136774 Log: gcc/cp/ 2008-06-14 Simon Martin <simartin@users.sourceforge.net> PR c++/35317 * class.c (type_requires_array_cookie): Do not consider delete[] operators with an ellipsis as second argument. gcc/testsuite/ 2008-06-14 Simon Martin <simartin@users.sourceforge.net> PR c++/35317 * g++.dg/other/dtor2.C: New test. Added: trunk/gcc/testsuite/g++.dg/other/dtor2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/testsuite/ChangeLog
Subject: Bug 35317 Author: simartin Date: Sun Jun 15 11:57:33 2008 New Revision: 136807 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136807 Log: gcc/cp/ 2008-06-15 Simon Martin <simartin@users.sourceforge.net> PR c++/35317 * class.c (type_requires_array_cookie): Do not consider delete[] operators with an ellipsis as second argument. gcc/testsuite/ 2008-06-15 Simon Martin <simartin@users.sourceforge.net> PR c++/35317 * g++.dg/other/dtor2.C: New test. Added: branches/gcc-4_3-branch/gcc/testsuite/g++.dg/other/dtor2.C Modified: branches/gcc-4_3-branch/gcc/cp/ChangeLog branches/gcc-4_3-branch/gcc/cp/class.c branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
Fixed in 4.3 and 4.4.
Closing 4.1 branch.
Closing 4.2 branch, fixed in 4.3.2 and 4.4.