]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Change c++2b and gnu++2b to c++23 and gnu++23 in C++ diagnostics
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Jan 2025 16:23:02 +0000 (17:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Jan 2025 16:23:02 +0000 (17:23 +0100)
commit03e0bf3f4f9bd85dcc1f60c4e38157609d754c91
treeeefd550c5c066299be273824e3cd5a8ab83774da
parent80b52301e8ee9a211ee882863b32caf613fd0a78
c++: Change c++2b and gnu++2b to c++23 and gnu++23 in C++ diagnostics

This is something we should have done when -std=c++23 was made the
primary option and -std=c++2b turned into undocumented alias.

2025-01-16  Jakub Jelinek  <jakub@redhat.com>

gcc/cp/
* parser.cc (cp_parser_lambda_declarator_opt,
cp_parser_statement, cp_parser_selection_statement,
cp_parser_jump_statement): Use -std=c++23 and -std=gnu++23
in diagnostics rather than -std=c++2b and -std=gnu++2b.
* semantics.cc (finish_compound_literal): Likewise.
* typeck2.cc (build_functional_cast_1): Likewise.
* decl.cc (start_decl): Likewise.
* constexpr.cc (ensure_literal_type_for_constexpr_object,
potential_constant_expression_1): Likewise.
gcc/c-family/
* c-lex.cc (interpret_float): Use -std=c++23 and -std=gnu++23
in diagnostics rather than -std=c++2b and -std=gnu++2b.
gcc/c-family/c-lex.cc
gcc/cp/constexpr.cc
gcc/cp/decl.cc
gcc/cp/parser.cc
gcc/cp/semantics.cc
gcc/cp/typeck2.cc