Your message dated Sun, 28 Jul 2024 15:35:35 +0000 with message-id <e1sy5vr-00f0o3...@fasolo.debian.org> and subject line Bug#1076503: Removed package(s) from unstable has caused the Debian Bug report #977638, regarding g++-10:s390x: Large classes of std::bitset and std::vector<bool> hash the same to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 977638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977638 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Package: g++-10 Version: 10.2.1-1 Severity: normal On s390x, std::hash returns identical values for large classes of std::bitset and std::vector<bool>: $ cat bug.cc #include <bitset> #include <functional> #include <iostream> #include <vector> int main() { std::bitset<2> a("00"), b("01"); std::vector<bool> c = {false, true, false, true}; std::vector<bool> d = {true, false, true, false}; std::bitset<9> e("000000000"), f("010101010"); std::vector<bool> g = {true, true, true, true, true, true, true, true, true}; std::vector<bool> h = {false, false, false, true, true, false, false, false, false}; std::hash<std::bitset<2>> h1; std::hash<std::bitset<9>> h2; std::hash<std::vector<bool>> h3; std::cout << h1(a) << '\n' << h1(b) << '\n' << h3(c) << '\n' << h3(d) << "\n\n" << h2(e) << '\n' << h2(f) << '\n' << h3(g) << '\n' << h3(h) << '\n'; } $ g++ -o bug bug.cc $ ./bug 7857072875483051545 7857072875483051545 7857072875483051545 7857072875483051545 4158372090644325695 4158372090644325695 4158372090644325695 4158372090644325695 It appears that the hash value is completely dependent on the size of the object in bytes. 1–8-bit values all hash to 7857072875483051545; 9–16-bit values all hash to 4158372090644325695; and though bug.cc doesn’t demonstrate it, 17-bit values hash to 14756137038141193723.
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---Version: 10.5.0-4+rm Dear submitter, as the package gcc-10 has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1076503 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org. Debian distribution maintenance software pp. Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---