This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21892] value of constexpr variable is "<optimized out>" (no optimization)


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]