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: jwakely.gcc at gmail 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: Thu, 14 Oct 2021 11:42:41 +0000

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

--- Comment #6 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
Search_directory() says:

// We need a default constructor because we put this in a
// std::vector

That is not true since C++11. Since the constructor is broken (has undefined
behaviour, which libstdc++ turns into an exception) and isn't needed for the
stated purpose, maybe it should just be removed.

-- 
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]