[Bug c++/88683] New: nan <= inf not accepted as constant expression

2019-01-03 Thread mjansche at google dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mjansche at google dot com Target Milestone: --- I am observing a regression between g++-7.4.0 and g++-8.2.0 when compiling the following code: #include #include int main() { constexpr double nan = std::numeric_lim

[Bug c++/88683] nan <= inf not accepted as constant expression

2019-01-03 Thread mjansche at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88683 --- Comment #2 from Martin Jansche --- Yeah, looks definitely related. Details may depend on the ultimate diagnosis. Similar observation here that it matters whether NaN appears on the left-hand side vs. right-hand side of a comparison (cf. htt