From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4941 invoked by alias); 9 Jul 2009 21:32:01 -0000 Received: (qmail 4814 invoked by uid 48); 9 Jul 2009 21:31:31 -0000 Date: Thu, 09 Jul 2009 21:32:00 -0000 Subject: [Bug c++/40705] New: Using -ggdb flag cause internal X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "phorgan1 at gmail dot com" 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-07/txt/msg00830.txt.bz2 The following code compiles cleanly without the -ggdb flag, i.e. using: g++ -save-temps testit.cpp -o testit but adding the -ggdb flag: g++ -ggdb -save-temps testit.cpp -o testit results in the following error output: testit.cpp:10:1: internal compiler error: in gen_type_die_with_usage, at dwarf2out.c:15108 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Exact code compiled from testit.ii: # 1 "testit.cpp" # 1 "" # 1 "" # 1 "testit.cpp" template class foo { public: typedef unsigned char type; }; template<> class foo<1> { typedef enum {} type; }; int main() { } -- Summary: Using -ggdb flag cause internal Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: phorgan1 at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40705