From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13849 invoked by alias); 26 Apr 2010 17:45:34 -0000 Received: (qmail 13730 invoked by uid 48); 26 Apr 2010 17:45:16 -0000 Date: Mon, 26 Apr 2010 17:45:00 -0000 Subject: [Bug lto/43898] New: -flto -g: "tree check: expected class 'type', have 'declaration'" X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "max at duempel 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: 2010-04/txt/msg02756.txt.bz2 With "-flto -g", the following source will bail out with an internal compiler error: void bug() { struct Class { Class(int a) {} virtual void f() {} }; Class a(0); } Command line: g++-4.5 -g -flto bug.cxx Error message: bug.cxx: In member function 'bug()::Class::f()': bug.cxx:4:23: internal compiler error: tree check: expected class 'type', have 'declaration' (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18962 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler version: gcc version 4.5.1 20100419 (prerelease) (Debian 4.5.0-2) -- Summary: -flto -g: "tree check: expected class 'type', have 'declaration'" Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: max at duempel dot org GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43898