[PATCH] gdbsupport: fix array-view compilation with c++11 && _GLIBCXX_DEBUG
Simon Marchi
simon.marchi@efficios.com
Sat Nov 20 04:26:24 GMT 2021
On 2021-11-19 15:29, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
>
> Simon> This is because constexpr functions in C++ can only consist of a single
> Simon> return statement, so we can't have the gdb_assert in there. Make the
> Simon> gdb_assert presence conditional to the __cplusplus version, to enable it
> Simon> only for c++14 and later.
>
> Seems fine to me. Thanks.
>
> Tom
>
Thanks, pushed.
Simon
More information about the Gdb-patches
mailing list