From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2186 invoked by alias); 8 Jan 2011 20:45:52 -0000 Received: (qmail 2177 invoked by uid 22791); 8 Jan 2011 20:45:51 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Jan 2011 20:45:47 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/47209] ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -f{no-,}emit-struct-debug-{baseonly,reduced} -g X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 08 Jan 2011 20:59:00 -0000 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: 2011-01/txt/msg00752.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47209 Zdenek Sojka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE: SIGSEGV in |ICE: SIGSEGV in |should_emit_struct_debug |should_emit_struct_debug |(dwarf2out.c:627) with |(dwarf2out.c:627) with |-femit-struct-debug-baseonl |-f{no-,}emit-struct-debug-{ |y -g |baseonly,reduced} -g --- Comment #3 from Zdenek Sojka 2011-01-08 20:45:38 UTC --- It fails the same way with -f{no-,}emit-struct-debug-reduced and -f{no-,}emit-struct-debug-baseonly , with very similiar crash location and the same backtrace: $ gcc -femit-struct-debug-reduced -g pr47209.C ==15753== Invalid read of size 2 ==15753== at 0x78AC90: should_emit_struct_debug (dwarf2out.c:624) pr47209.C:6:8: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ gcc -fno-emit-struct-debug-reduced -g pr47209.C ==15579== Invalid read of size 2 ==15579== at 0x78AC90: should_emit_struct_debug (dwarf2out.c:624) pr47209.C:6:8: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ gcc -femit-struct-debug-baseonly -g pr47209.C ==5087== Invalid read of size 2 ==5087== at 0x78AC0E: should_emit_struct_debug (dwarf2out.c:627) pr47209.C:6:8: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ gcc -fno-emit-struct-debug-baseonly -g pr47209.C ==13603== Invalid read of size 2 ==13603== at 0x78AC0E: should_emit_struct_debug (dwarf2out.c:627) pr47209.C:6:8: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. (In reply to comment #1) > I don't know if the code is valid or invalid (I have no clue what is the > meaning of "base::foo;"). According to people ##C++ at irc.freenode.org, it is equivalent to "using base::foo;", in some pre-standard notation (if I understood that correctly).