[Bug libstdc++/89979] subtract_with_carry_engine incorrect carry flag

2019-04-04 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89979 --- Comment #1 from Christoph Conrads --- There is no attachment with the preprocessed code demonstrating the problem because the this code is 1.2 MB large.

[Bug libstdc++/89979] New: subtract_with_carry_engine incorrect carry flag

2019-04-04 Thread g...@christoph-conrads.name
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: g...@christoph-conrads.name Target Milestone: --- Created attachment 46090 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46090=edit The initial state in combination with the incorrect carry computation ma

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-24 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #9 from Christoph Conrads --- nan-lhs.cpp with `float` instead of `double` triggers the same error messages with `QNaNf` in place of `QNaN`.

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-24 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #8 from Christoph Conrads --- Created attachment 45082 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45082=edit nan-lhs.cpp

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-24 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #7 from Christoph Conrads --- Created attachment 45081 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45081=edit nan-lhs.ii created by GCC 6.3.0 on Raspbian 9.4

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-24 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #6 from Christoph Conrads --- Created attachment 45080 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45080=edit nan-lhs.ii created by GCC 7.3.0 on Ubuntu 18.04 LTS

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-24 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #5 from Christoph Conrads --- Having read the comments, I began to modify code in the bug report. Apparently, the bug is only triggered if QNaN is on the wrong side of the comparison operator: christoph:~$ cat nan-lhs.cpp #include

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-23 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #2 from Christoph Conrads --- Created attachment 45076 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45076=edit Code pre-processed with GCC 6.3.0 on Raspbian 9.4 The file was created with $ g++ -Wextra -Wall -std=c++11

[Bug c++/88173] `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-23 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 --- Comment #1 from Christoph Conrads --- Created attachment 45075 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45075=edit Code pre-processed with GCC 7.3.0 on Ubuntu 18.04 LTS This file was created with $ g++ -Wextra -Wall -std=c++11

[Bug c++/88173] New: `std::numeric_limits::quiet_NaN()` is not constexpr

2018-11-23 Thread g...@christoph-conrads.name
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: g...@christoph-conrads.name Target Milestone: --- Consider the following C++11 code: $ cat nan.cpp #include constexpr bool foo(double x) { return !(x <= 0); } int m

[Bug libstdc++/80977] uniform_int_distribution downscaling throws away perfectly good entropy

2018-10-07 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80977 --- Comment #3 from Christoph Conrads --- With GCC bug 80977, half of all values from the random bit generator may be ignored by std::uniform_int_distribution.

[Bug libstdc++/80977] uniform_int_distribution downscaling throws away perfectly good entropy

2018-10-07 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80977 --- Comment #2 from Christoph Conrads --- Created attachment 44802 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44802=edit Patch proposal for GCC bug 80977 This patch attempts to fix bug 80977. The code in __generate_impl was not tested

[Bug libstdc++/80977] uniform_int_distribution downscaling throws away perfectly good entropy

2018-10-07 Thread g...@christoph-conrads.name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80977 Christoph Conrads changed: What|Removed |Added CC||g...@christoph-conrads.name