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

--- Comment #21 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:52672be7d328df50f9a05ce3ab44ebcae50fee1b

commit r13-3910-g52672be7d328df50f9a05ce3ab44ebcae50fee1b
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Fri Nov 11 22:23:31 2022 +1100

    libstdc++: Set active union member in constexpr std::string [PR103295]

    Clang still complains about using std::string in constexpr contexts due
    to the changes made in commit 98a0d72a. This patch ensures that we set
    the active member of the union as according to [class.union.general] p6.

    libstdc++-v3/ChangeLog:

            PR libstdc++/103295
            * include/bits/basic_string.h (_M_use_local_data): Set active
            member to _M_local_buf.

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>
  • [Bug libstdc++/103295] constexp... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to