[Bug c++/93224] 29_atomics/atomic_ref/float.cc fails with a tweaked IPA inliner

2020-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93224 --- Comment #2 from Martin Liška --- One more test-case: $ #include int main() { long double value; if constexpr (std::atomic_ref::is_always_lock_free) { bool ok; const auto mo = std::memory_order_relaxed; std::atomic_ref a(v

[Bug c++/93224] 29_atomics/atomic_ref/float.cc fails with a tweaked IPA inliner

2020-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93224 --- Comment #1 from Martin Liška --- Reduced test-case: #include int main() { long double value; if constexpr (std::atomic_ref::is_always_lock_free) { bool ok; const auto mo = std::memory_order_relaxed; std::atomic_ref a(valu