Re: gcc-12.0.0-0.4.fc36 in rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/01/2022 19:40, Ben Beasley wrote:
To clarify, this is affecting the https://src.fedoraproject.org/rpms/json package and (since it is a header-only library) some or all of the many packages that use it.

nheko package:

/builddir/build/BUILD/nheko-0.9.1/src/Cache.cpp:4530:34: error: ambiguous overload for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const nlohmann::basic_json<>::value_type' {aka 'const nlohmann::basic_json<>'})
 4530 |     info.name       = j.at("name");
      |                                  ^
In file included from /usr/include/c++/12/string:53,
from /builddir/build/BUILD/nheko-0.9.1/redhat-linux-build/CMakeFiles/nheko.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/include/c++/12/bits/basic_string.h:733:21: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::nullptr_t = std::nullptr_t]' (deleted)
  733 |       basic_string& operator=(nullptr_t) = delete;
      |                     ^~~~~~~~
/usr/include/c++/12/bits/basic_string.h:801:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  801 |       operator=(const basic_string& __str)
      |       ^~~~~~~~
/usr/include/c++/12/bits/basic_string.h:842:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  842 |       operator=(basic_string&& __str)
      |       ^~~~~~~~
/builddir/build/BUILD/nheko-0.9.1/src/Cache.cpp:4531:35: error: ambiguous overload for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const nlohmann::basic_json<>::value_type' {aka 'const nlohmann::basic_json<>'})
 4531 |     info.topic      = j.at("topic");
      |                                   ^

mtxclient package:

/builddir/build/BUILD/mtxclient-0.6.1/lib/structs/pushrules.cpp: In function 'void mtx::pushrules::from_json(const nlohmann::json&, PushCondition&)': /builddir/build/BUILD/mtxclient-0.6.1/lib/structs/pushrules.cpp:23:35: error: ambiguous overload for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const nlohmann::basic_json<>::value_type' {aka 'const nlohmann::basic_json<>'})
   23 |     condition.kind    = obj["kind"];
      |                                   ^
In file included from /usr/include/c++/12/string:53,
                 from /usr/include/nlohmann/json_fwd.hpp:7,
from /builddir/build/BUILD/mtxclient-0.6.1/include/mtx/pushrules.hpp:7, from /builddir/build/BUILD/mtxclient-0.6.1/lib/structs/pushrules.cpp:1: /usr/include/c++/12/bits/basic_string.h:733:21: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::nullptr_t = std::nullptr_t]' (deleted)
  733 |       basic_string& operator=(nullptr_t) = delete;
      |                     ^~~~~~~~
/usr/include/c++/12/bits/basic_string.h:801:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  801 |       operator=(const basic_string& __str)
      |       ^~~~~~~~
/usr/include/c++/12/bits/basic_string.h:842:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  842 |       operator=(basic_string&& __str)
      |       ^~~~~~~~

--
Sincerely,
  Vitaly Zaitsev (vitaly@xxxxxxxxxxxxxx)
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux