[libc++][format] Fixes constexpr validation.
authorMark de Wever <koraq@xs4all.nl>
Mon, 6 Feb 2023 15:29:30 +0000 (16:29 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 7 Feb 2023 14:57:04 +0000 (15:57 +0100)
commitac44dadcbea52e14aab20c0d590d4ec00d615a93
tree7d94cef0c3aa29ec3addb4f19e9deef86b97847a
parent0fc42b38a2d907d76098cf8a30ebc5f444ea586a
[libc++][format] Fixes constexpr validation.

The constexpr validation parsed parts of the format string that didn't
belong to the specific replacement field.

Fixes https://llvm.org/PR60536

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D143402
libcxx/include/__format/format_functions.h
libcxx/test/std/utilities/format/format.functions/format_tests.h