]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add missing constexpr specifiers in <format>
authorDeev Patel <pateldeev@nevada.unr.edu>
Mon, 24 Jul 2023 20:10:52 +0000 (21:10 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 24 Jul 2023 21:12:02 +0000 (22:12 +0100)
commit96482ffe60d9bdec802fcad705c69641b2a3e040
tree6efec33d2b7d18c536fa0edeebd300e4203c8ff7
parent2e31fe431b08b0302e1fa8a1c18ee51adafd41df
libstdc++: Add missing constexpr specifiers in <format>

A couple of virtual functions in the libstdc++ format header are marked
constexpr in the base class, but not in the derived class. This was
causing build failures when trying to compile latest gcc libstdc++ with
clang 16 using c++20. Adding the constexpr specifier resolves the issue.

libstdc++-v3/ChangeLog:

* include/std/format (_Formatting_scanner::_M_on_chars): Add
missing constexpr specifier.
(_Formatting_scanner::_M_format_arg): Likewise.
libstdc++-v3/include/std/format