aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-03-08 11:58:49 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-03-12 10:06:57 +0000
commita21847acb8bb1101c15deef1b55d929e65c9ada4 (patch)
tree49c1bca60dca44eecf00366d19b886f2f0032452 /gcc
parentbb83e83cada180cce650539ab6042aa57fed1caf (diff)
downloadgcc-a21847acb8bb1101c15deef1b55d929e65c9ada4.zip
gcc-a21847acb8bb1101c15deef1b55d929e65c9ada4.tar.gz
gcc-a21847acb8bb1101c15deef1b55d929e65c9ada4.tar.bz2
libstdc++: Reject basic_format_parse_context::check_dynamic_spec<>(n)
LWG 4142 (approved in Wrocław, November 2024) made it ill-formed to call basic_format_parse_context::check_dynamic_spec with an empty template argument list. This adds a static_assert to enforce that, and adjusts the tests. libstdc++-v3/ChangeLog: * include/std/format (basic_format_parse_context::check_dynamic_spec): Require a non-empty parameter pack, as per LWG 4142. * testsuite/std/format/parse_ctx.cc: Remove call of check_dynamic_spec with empty template argument list. * testsuite/std/format/parse_ctx_neg.cc: Add dg-error to call of check_dynamic_spec with empty template argument list. Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions