aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-09 11:11:31 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-09 15:19:16 +0100
commitb3a2b307b9deea719fb725a86df43b82176fe459 (patch)
treee333a681dfdd2492cb7b1820802263b5f253d4c5 /gcc/expr.cc
parent9bd194434acb47fac80aad45ed04039e0535d1fe (diff)
downloadgcc-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/expr.cc')
0 files changed, 0 insertions, 0 deletions