]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Initialize member in std::match_results [PR103549]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 4 Dec 2021 11:38:25 +0000 (11:38 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 4 Dec 2021 15:55:01 +0000 (15:55 +0000)
commit87710ec7b213245ecb194b778e97ae3a6790394f
treec39e0fb3f06b4c4733fc3aea198f98cc083194c5
parentb09af56214ed10dddfb99267a0c615b6a939e44d
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.
libstdc++-v3/include/bits/regex.h
This page took 0.05992 seconds and 6 git commands to generate.