diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-09 11:11:31 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-08-09 15:19:16 +0100 |
commit | b3a2b307b9deea719fb725a86df43b82176fe459 (patch) | |
tree | e333a681dfdd2492cb7b1820802263b5f253d4c5 /gcc | |
parent | 9bd194434acb47fac80aad45ed04039e0535d1fe (diff) | |
download | gcc-b3a2b307b9deea719fb725a86df43b82176fe459.zip gcc-b3a2b307b9deea719fb725a86df43b82176fe459.tar.gz gcc-b3a2b307b9deea719fb725a86df43b82176fe459.tar.bz2 |
libstdc++: Fix constexpr functions to conform to older standards
Some constexpr functions were inadvertently relying on relaxed constexpr
rules from later standards.
libstdc++-v3/ChangeLog:
* include/bits/chrono.h (duration_cast): Do not use braces
around statements for C++11 constexpr rules.
* include/bits/stl_algobase.h (__lg): Rewrite as a single
statement for C++11 constexpr rules.
* include/experimental/bits/fs_path.h (path::string): Use
_GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
* include/std/charconv (__to_chars_8): Initialize variable for
C++17 constexpr rules.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions