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

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

https://gcc.gnu.org/g:29dad307b5d7cfdb6626c11c8e43ebff941c950b

commit r9-9374-g29dad307b5d7cfdb6626c11c8e43ebff941c950b
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Mar 11 16:43:51 2021 +0000

    libstdc++: Initialize std::normal_distribution::_M_saved [PR 99536]

    This avoids a false positive -Wmaybe-uninitialized warning, by
    initializing _M_saved on construction.

    libstdc++-v3/ChangeLog:

            PR libstdc++/99536
            * include/bits/random.h (normal_distribution): Use
            default-initializer for _M_saved and _M_saved_available.

    (cherry picked from commit 67e397660611990efd98f9e4106c1ee81f6803a4)

Reply via email to