[Bug c++/117331] constexpr with "long double" fails on ppc64el

2024-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117331 --- Comment #4 from Jonathan Wakely --- As noted in PR 19779, using -ffast-math or -funsafe-math-optimizations allows your examples to compile.

[Bug c++/117331] constexpr with "long double" fails on ppc64el

2024-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117331 --- Comment #3 from Jonathan Wakely --- This is one of many reasons that the world is moving to -mabi=ieeelongdouble instead of ibmlongdouble

[Bug c++/117331] constexpr with "long double" fails on ppc64el

2024-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117331 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/117331] constexpr with "long double" fails on ppc64el

2024-10-28 Thread dev at umlaeute dot mur.at via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117331 --- Comment #1 from IOhannes m zmölnig --- ouch, i've actually posted my initial test-case that uses templates. The original code looked like ```C++ template T test(void) { constexpr auto one = T (1); constexpr auto oneThird = one / (T)