Bug#1059340: libstdc++6:riscv64: stream output for NaN is optimization-dependent

2023-12-22 Thread Benjamin Barenblat
Control: user debian-ri...@lists.debian.org Control: usertag 1059340 + riscv64 Just to be clear, I've only observed this behavior on riscv64.

Bug#1059340: libstdc++6:riscv64: stream output for NaN is optimization-dependent

2023-12-22 Thread Benjamin Barenblat
Package: libstdc++6 Version: 13.2.0-9 Streaming a negative NaN float produces "-nan" with g++ -O0 and "nan" with g++ -O1 or above: $ cat >mwe.cc < // Copyright 2023 Google LLC > // SPDX-License-Identifier: Apache-2.0 > > #include > #include >

Bug#977638: g++-10:s390x: Large classes of std::bitset and std::vector hash the same

2020-12-17 Thread Benjamin Barenblat
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: $ cat bug.cc #include #include #include #include int main() { std::bitset<2> a("00"), b("01"); std::vector c =