From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DBD53858D3C; Sun, 27 Aug 2023 16:59:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DBD53858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693155596; bh=wAeHh9GcnOsEHsqeUKq8DdgTD003Keu4vvVw30J4514=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EpHv4+PpuQB2H8211MLL3PzrMn2fTjSvFPibMC6W6md+UDvqnWbqJbHZ0TP5EORcL eoEMC3WuO+SZ9aAAPbswY7pvyZlmKtcfjRBA0WC6Kw/2r7C4lxs94daFWs98QZ0itq UGRXZyKbt+LD4zwHBP8gYDupO5RsHbp5PsJOygw8= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug c++/21892] value of constexpr variable is "" (no optimization) Date: Sun, 27 Aug 2023 16:59:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D21892 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #3 from Tom Tromey --- I needed -fno-eliminate-unused-debug-types for this. This looks like a compiler bug to me. The DWARF for A::a is: <2><35>: Abbrev Number: 5 (DW_TAG_variable) <36> DW_AT_name : a <38> DW_AT_decl_file : 1 <39> DW_AT_decl_line : 2 <3a> DW_AT_decl_column : 34 <3b> DW_AT_linkage_name: (indirect string, offset: 0x0): _ZN1A1aE <3f> DW_AT_type : <0x60> <43> DW_AT_external : 1 <43> DW_AT_declaration : 1 <43> DW_AT_const_expr : 1 <43> DW_AT_inline : 1 (inlined) There's no location here, just a linkage name. However, that symbol isn't defined. --=20 You are receiving this mail because: You are on the CC list for the bug.=