diff options
author | Deev Patel <dkp10000@gmail.com> | 2024-06-06 11:53:25 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-06-08 15:51:40 +0100 |
commit | ae91b5dd14920ff9671db8ff80c0d763d25f977f (patch) | |
tree | f5687c013f8dd061ea3de9c71537578ba4fdf727 /gcc | |
parent | 0bb1db32ccf54a9de59bea718f7575f7ef22abf5 (diff) | |
download | gcc-ae91b5dd14920ff9671db8ff80c0d763d25f977f.zip gcc-ae91b5dd14920ff9671db8ff80c0d763d25f977f.tar.gz gcc-ae91b5dd14920ff9671db8ff80c0d763d25f977f.tar.bz2 |
libstdc++: Add missing constexpr to __atomic_impl::__clear_padding
This is called from the std::atomic<floating-point-type> constructor,
which needs to be usable in constant expressions.
libstdc++-v3/ChangeLog:
* include/bits/atomic_base.h (__atomic_impl::__clear_padding):
Add missing constexpr specifier.
* testsuite/29_atomics/atomic_float/constinit.cc: New test.
Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions