bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/28417] std::string no longer allows accepting nullptr_t since


From: euloanty at live dot com
Subject: [Bug gold/28417] std::string no longer allows accepting nullptr_t since it is undefined behavior after yesterday's change on libstdc++.
Date: Tue, 05 Oct 2021 03:58:41 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28417

--- Comment #2 from cqwrteur <euloanty at live dot com> ---
Here is another problem.
../../../../binutils-gdb/gold/incremental.cc:2289:12: error: use of deleted
function 'std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::basic_string(std::nullptr_t) [with _CharT = char; _Traits =
std::char_traits<char>; _Alloc = std::allocator<char>; std::nullptr_t =
std::nullptr_t]'
 2289 |     return NULL;
      |            ^~~~
In file included from
/home/cqwrteur/cross/x86_64-w64-mingw32/x86_64-w64-mingw32/include/c++/12.0.0/string:53,
                 from ../../../../binutils-gdb/gold/options.h:43,
                 from ../../../../binutils-gdb/gold/incremental.cc:30:
/home/cqwrteur/cross/x86_64-w64-mingw32/x86_64-w64-mingw32/include/c++/12.0.0/bits/basic_string.h:626:7:
note: declared here
  626 |       basic_string(nullptr_t) = delete;
      |       ^~~~~~~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]