https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99985

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:40ccb47b505b528244ee305923681c0ae3b6f4d5

commit r11-8085-g40ccb47b505b528244ee305923681c0ae3b6f4d5
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri Apr 9 12:05:39 2021 +0100

    libstdc++: Fix invalid constexpr function in C++11 mode [PR 99985]

    I keep forgetting that a constexpr function in C++11 has to be a single
    return statement.

    libstdc++-v3/ChangeLog:

            PR libstdc++/99985
            * include/bits/hashtable.h (_Hashtable::_S_nothrow_move()): Fix
            to be a valid constexpr function in C++11.
            * testsuite/23_containers/unordered_set/cons/99985.cc: New test.

Reply via email to