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

--- Comment #2 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:87710ec7b213245ecb194b778e97ae3a6790394f

commit r12-5792-g87710ec7b213245ecb194b778e97ae3a6790394f
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Sat Dec 4 11:38:25 2021 +0000

    libstdc++: Initialize member in std::match_results [PR103549]

    This fixes a -Wuninitialized warning for std::cmatch m1, m2; m1=m2;

    Also name the template parameters in the forward declaration, to get rid
    of the <template-parameter-1-1> noise in diagnostics.

    libstdc++-v3/ChangeLog:

            PR libstdc++/103549
            * include/bits/regex.h (match_results): Give names to template
            parameters in first declaration.
            (match_results::_M_begin): Add default member-initializer.

Reply via email to