From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10761 invoked by alias); 18 Dec 2009 11:13:06 -0000 Received: (qmail 10717 invoked by uid 48); 18 Dec 2009 11:12:52 -0000 Date: Fri, 18 Dec 2009 11:13:00 -0000 Subject: [Bug debug/42425] New: ICE declaring local class 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: 2009-12/txt/msg01829.txt.bz2 The following valid code snippet triggers an ICE on trunk when compiled with "-flto -g": ========================== struct A { virtual ~A(); }; void foo() { struct B : A {}; B b; } ========================== bug.cc: In member function 'B': bug.cc:8:16: internal compiler error: tree check: expected class 'type', have 'declaration' (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18739 Please submit a full bug report, [etc.] -- Summary: ICE declaring local class Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, lto Severity: normal Priority: P3 Component: debug 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=42425