This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization)
- From: "guillaume at morinfr dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 02 Aug 2017 23:03:44 +0000
- Subject: [Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization)
- Auto-submitted: auto-generated
- References: <bug-21892-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21892
Guillaume Morin <guillaume at morinfr dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |guillaume at morinfr dot org
--- Comment #1 from Guillaume Morin <guillaume at morinfr dot org> ---
Just a note: I get *optimized out* with c++14 (the default), not c++17
So you want to compile with "g++-7 -g -o main main.cpp" to reproduce this bug.
If you add -std=c++17, you're reproducing the segfault in c++/20020
--
You are receiving this mail because:
You are on the CC list for the bug.