From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2903 invoked by alias); 1 Jun 2008 10:32:05 -0000 Received: (qmail 2800 invoked by uid 48); 1 Jun 2008 10:31:24 -0000 Date: Sun, 01 Jun 2008 10:32:00 -0000 Subject: [Bug c++/36406] New: [4.1/4.2/4.3/4.4 regression] ICE with template delete operator X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00009.txt.bz2 The following invalid code snippet triggers an ICE since GCC 3.0: ==================================================== struct A { A(); void* operator new(__SIZE_TYPE__, int = 0); template void operator delete(void*, int); }; A* p = new A; ==================================================== gimplification failed: <<< Unknown tree: template_decl >>> > type_6 QI size unit size align 8 symtab 0 alias set -1 canonical type 0x401aebc8 arg-types chain chain >>> pointer_to_this > used ignored decl_1 VOID file bug.cc line 5 col 48 align 1 context arguments value elt 0 >> result public external no-static-chain decl_3 QI file bug.cc line 5 col 48 align 8 context arguments unsigned SI file bug.cc line 5 col 48 size unit size align 32 chain > template-info 0x4022d6c8> > bug.cc: In function 'void __static_initialization_and_destruction_0(int, int)': bug.cc:8: internal compiler error: gimplification failed Please submit a full bug report, [etc.] GCC 2.95.3 used to generate a valid error message: bug.cc: In function `void __static_initialization_and_destruction_0(int, int)': bug.cc:8: no suitable operator delete for `A' -- Summary: [4.1/4.2/4.3/4.4 regression] ICE with template delete operator Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36406