Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 1 year ago

Language

C++

Compiler

gcc 13.2.0

Options
Warnings
Boost 1.83.0
C++2a
-pedantic

Author

anonymous

over 1 year ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.83.0-gcc-13.2.0/include -std=c++2a -pedantic
In file included from prog.cc:1:
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format: In instantiation of 'class std::__format::_Checking_scanner<char, std::basic_string_view<char8_t, std::char_traits<char8_t> > >':
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3671:4:   required from 'consteval std::basic_format_string<_CharT, _Args>::basic_format_string(const _Tp&) [with _Tp = char [15]; _CharT = char; _Args = {std::basic_string_view<char8_t, std::char_traits<char8_t> >&}]'
prog.cc:8:23:   required from here
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3593:10: error: static assertion failed: std::formatter must be specialized for each type being formatted
 3593 |         (is_default_constructible_v<formatter<_Args, _CharT>> && ...),
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3593:10: note: 'std::is_default_constructible_v<std::formatter<std::basic_string_view<char8_t>, char> >' evaluates to false
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format: In instantiation of 'constexpr void std::__format::_Checking_scanner<_CharT, _Args>::_M_parse_format_spec(std::size_t) [with _Tp = std::basic_string_view<char8_t>; _OtherArgs = {}; _CharT = char; _Args = {std::basic_string_view<char8_t, std::char_traits<char8_t> >}; std::size_t = long unsigned int]':
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3610:33:   required from here
prog.cc:8:23:   in 'constexpr' expansion of 'std::basic_format_string<char, std::basic_string_view<char8_t, std::char_traits<char8_t> >&>("Example is: {}")'
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3672:19:   in 'constexpr' expansion of '__scanner.std::__format::_Checking_scanner<char, std::basic_string_view<char8_t, std::char_traits<char8_t> > >::<anonymous>.std::__format::_Scanner<char>::_M_scan()'
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3482:30:   in 'constexpr' expansion of '((std::__format::_Scanner<char>*)this)->std::__format::_Scanner<char>::_M_on_replacement_field()'
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3534:15:   in 'constexpr' expansion of '((std::__format::_Scanner<char>*)this)->std::__format::_Scanner<char>::_M_format_arg(__id)'
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3623:38: error: use of deleted function 'std::formatter<_Tp, _CharT>::formatter() [with _Tp = std::basic_string_view<char8_t>; _CharT = char]'
 3623 |               formatter<_Tp, _CharT> __f;
      |                                      ^~~
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:140:7: note: declared here
  140 |       formatter() = delete; // No std::formatter specialization for this type.
      |       ^~~~~~~~~
/opt/wandbox/gcc-13.2.0/include/c++/13.2.0/format:3624:42: error: 'struct std::formatter<std::basic_string_view<char8_t>, char>' has no member named 'parse'
 3624 |               this->_M_pc.advance_to(__f.parse(this->_M_pc));
      |                                      ~~~~^~~~~
Exit Code:
1