diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-11-30 13:41:32 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-11-30 20:10:19 +0000 |
commit | 91c26004037db689954318d3d1c801eea18d45f4 (patch) | |
tree | a84b5f3533e958baabe1bc7ffb52ca36e706b544 /gcc/fortran/array.c | |
parent | cca6090b13ab503bef1cfa327e2d107789d6bd30 (diff) | |
download | gcc-91c26004037db689954318d3d1c801eea18d45f4.zip gcc-91c26004037db689954318d3d1c801eea18d45f4.tar.gz gcc-91c26004037db689954318d3d1c801eea18d45f4.tar.bz2 |
libstdc++: Skip tag dispatching for _S_relocate in C++17
In C++17 mode all callers of _S_relocate have already done:
if constexpr (_S_use_relocate())
so we don't need to repeat that check and use tag dispatching to avoid
ill-formed instantiations.
libstdc++-v3/ChangeLog:
* include/bits/stl_vector.h (vector::_S_do_relocate): Remove
C++20 constexpr specifier.
(vector::_S_relocate) [__cpp_if_constexpr]: Call __relocate_a
directly without tag dispatching.
Diffstat (limited to 'gcc/fortran/array.c')
0 files changed, 0 insertions, 0 deletions