https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108062
Bug ID: 108062 Summary: Test spdlog c++20 std::format Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lukaszcz18 at wp dot pl Target Milestone: --- /////////////////////////////////////////////////////////////////////////////// // Uncomment to use C++20 std::format instead of fmt. // // #define SPDLOG_USE_STD_FORMAT /////////////////////////////////////////////////////////////////////////////// I use gcc 13.0.0 20221211, spdlog 1.11.0 20221211 In file included from c:\gcc1300\x86_64-w64-mingw32\include\spdlog\fmt\fmt.h:14, from c:\gcc1300\x86_64-w64-mingw32\include\spdlog\common.h:50, from c:\gcc1300\x86_64-w64-mingw32\include\spdlog\spdlog.h:12, from common.h:40, from BMPFormat.cpp:28: c:\gcc1300\include\c++\13.0.0\format:3350:40: error: expected identifier before ',' token 3350 | __format::__do_vformat_to(_Out_, basic_string_view<_CharT_>, | ^ c:\gcc1300\include\c++\13.0.0\format: In instantiation of '_Out std::__format::__do_vformat_to(_Out, std::basic_string_view<_CharT>, const std::basic_format_args<_Context>&, const std::locale*) [with _Out = _Sink_iter<char>; _CharT = char; _Context = std::basic_format_context<_Sink_iter<char>, char>]': c:\gcc1300\include\c++\13.0.0\format:3646:39: required from '_Out std::vformat_to(_Out, string_view, format_args) [with _Out = __format::_Sink_iter<char>; string_view = basic_string_view<char>; format_args = basic_format_args<basic_format_context<__format::_Sink_iter<char>, char> >]' c:\gcc1300\include\c++\13.0.0\format:3673:20: required from here c:\gcc1300\include\c++\13.0.0\format:3614:24: error: 'std::basic_format_context<_Out, _CharT>::basic_format_context(std::basic_format_args<std::basic_format_context<_Out, _CharT> >, _Out) [with _Out = std::__format::_Sink_iter<char>; _CharT = char]' is private within this context 3614 | ? _Context(__args, __sink_out) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ c:\gcc1300\include\c++\13.0.0\format:3338:7: note: declared private here 3338 | basic_format_context(basic_format_args<basic_format_context> __args, | ^~~~~~~~~~~~~~~~~~~~ c:\gcc1300\include\c++\13.0.0\format:3615:24: error: 'std::basic_format_context<_Out, _CharT>::basic_format_context(std::basic_format_args<std::basic_format_context<_Out, _CharT> >, _Out, const std::locale&) [with _Out = std::__format::_Sink_iter<char>; _CharT = char]' is private within this context 3615 | : _Context(__args, __sink_out, *__loc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c:\gcc1300\include\c++\13.0.0\format:3343:7: note: declared private here 3343 | basic_format_context(basic_format_args<basic_format_context> __args, | ^~~~~~~~~~~~~~~~~~~~ c:\gcc1300\include\c++\13.0.0\format: In instantiation of '_Out std::__format::__do_vformat_to(_Out, std::basic_string_view<_CharT>, const std::basic_format_args<_Context>&, const std::locale*) [with _Out = _Sink_iter<wchar_t>; _CharT = wchar_t; _Context = std::basic_format_context<_Sink_iter<wchar_t>, wchar_t>]': c:\gcc1300\include\c++\13.0.0\format:3652:39: required from '_Out std::vformat_to(_Out, wstring_view, wformat_args) [with _Out = __format::_Sink_iter<wchar_t>; wstring_view = basic_string_view<wchar_t>; wformat_args = basic_format_args<basic_format_context<__format::_Sink_iter<wchar_t>, wchar_t> >]' c:\gcc1300\include\c++\13.0.0\format:3682:20: required from here c:\gcc1300\include\c++\13.0.0\format:3614:24: error: 'std::basic_format_context<_Out, _CharT>::basic_format_context(std::basic_format_args<std::basic_format_context<_Out, _CharT> >, _Out) [with _Out = std::__format::_Sink_iter<wchar_t>; _CharT = wchar_t]' is private within this context 3614 | ? _Context(__args, __sink_out) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~