public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization)
[not found] <bug-21892-4717@http.sourceware.org/bugzilla/>
@ 2023-08-27 16:59 ` tromey at sourceware dot org
2023-08-28 4:52 ` sam at gentoo dot org
1 sibling, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2023-08-27 16:59 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=21892
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization)
[not found] <bug-21892-4717@http.sourceware.org/bugzilla/>
2023-08-27 16:59 ` [Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization) tromey at sourceware dot org
@ 2023-08-28 4:52 ` sam at gentoo dot org
1 sibling, 0 replies; 2+ messages in thread
From: sam at gentoo dot org @ 2023-08-28 4:52 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=21892
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-28 4:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-21892-4717@http.sourceware.org/bugzilla/>
2023-08-27 16:59 ` [Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization) tromey at sourceware dot org
2023-08-28 4:52 ` sam at gentoo dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).