[libcxx-commits] [libcxx] 65f44c9 - [libc++] Fixes GCC-12 build.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 22 08:26:44 PDT 2022
Author: Mark de Wever
Date: 2022-06-22T17:26:17+02:00
New Revision: 65f44c9218e5e64ff1ca277b4f676f8415484d3f
URL: https://github.com/llvm/llvm-project/commit/65f44c9218e5e64ff1ca277b4f676f8415484d3f
DIFF: https://github.com/llvm/llvm-project/commit/65f44c9218e5e64ff1ca277b4f676f8415484d3f.diff
LOG: [libc++] Fixes GCC-12 build.
Added:
Modified:
libcxx/include/__format/parser_std_format_spec.h
Removed:
################################################################################
diff --git a/libcxx/include/__format/parser_std_format_spec.h b/libcxx/include/__format/parser_std_format_spec.h
index b5d369b35e8e..7ac1ce3825fa 100644
--- a/libcxx/include/__format/parser_std_format_spec.h
+++ b/libcxx/include/__format/parser_std_format_spec.h
@@ -1565,14 +1565,16 @@ class _LIBCPP_TEMPLATE_VIS __parser {
/// \returns the `__parsed_specifications` with the resolved dynamic sizes..
_LIBCPP_HIDE_FROM_ABI
__parsed_specifications<_CharT> __get_parsed_std_specifications(auto& __ctx) const {
- return __parsed_specifications<_CharT>{.__std_{.__alignment_ = __alignment_,
- .__sign_ = __sign_,
- .__alternate_form_ = __alternate_form_,
- .__locale_specific_form_ = __locale_specific_form_,
- .__type_ = __type_},
- .__width_{__get_width(__ctx)},
- .__precision_{__get_precision(__ctx)},
- .__fill_{__fill_}};
+ return __parsed_specifications<_CharT>{
+ .__std_ =
+ __std{.__alignment_ = __alignment_,
+ .__sign_ = __sign_,
+ .__alternate_form_ = __alternate_form_,
+ .__locale_specific_form_ = __locale_specific_form_,
+ .__type_ = __type_},
+ .__width_{__get_width(__ctx)},
+ .__precision_{__get_precision(__ctx)},
+ .__fill_{__fill_}};
}
__alignment __alignment_ : 3 {__alignment::__default};
More information about the libcxx-commits
mailing list