public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108062] New: Test spdlog c++20 std::format
@ 2022-12-11 15:10 lukaszcz18 at wp dot pl
  2022-12-11 18:32 ` [Bug libstdc++/108062] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: lukaszcz18 at wp dot pl @ 2022-12-11 15:10 UTC (permalink / raw)
  To: gcc-bugs

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)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-12 21:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-11 15:10 [Bug libstdc++/108062] New: Test spdlog c++20 std::format lukaszcz18 at wp dot pl
2022-12-11 18:32 ` [Bug libstdc++/108062] " pinskia at gcc dot gnu.org
2022-12-12 11:05 ` redi at gcc dot gnu.org
2022-12-12 11:11 ` redi at gcc dot gnu.org
2022-12-12 11:15 ` redi at gcc dot gnu.org
2022-12-12 14:03 ` redi at gcc dot gnu.org
2022-12-12 18:22 ` lukaszcz18 at wp dot pl
2022-12-12 20:20 ` redi at gcc dot gnu.org
2022-12-12 21:27 ` lukaszcz18 at wp dot pl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).