This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::regex: inserting std::wregex to std::vector loses some std::wregex values
- From: Tim Shen <timshen at google dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: Stefan Schweter <stefan at schweter dot it>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 7 Sep 2014 11:19:30 -0700
- Subject: Re: std::regex: inserting std::wregex to std::vector loses some std::wregex values
- Authentication-results: sourceware.org; auth=none
- References: <540C6873 dot 9030205 at schweter dot it> <CAH6eHdSdmAdo420reU92ujW+nT63H431vsuP9YzZo5YQPj1T3A at mail dot gmail dot com>
On Sun, Sep 7, 2014 at 10:30 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 7 September 2014 15:15, Stefan Schweter wrote:
>> Is this error known?
>
> No, I don't think we've seen this before. Please create a bug report,
> following the instructions at https://gcc.gnu.org/bugs
basic_regex has incorrect move constructor:
basic_regex(const basic_regex&& __rhs) noexcept
: _M_flags(__rhs._M_flags), _M_traits(__rhs._M_traits),
_M_automaton(std::move(__rhs._M_automaton))
{ }
Should be:
basic_regex(basic_regex&&) noexcept = default;
I'll make a patch later.
Thanks for reporting!
--
Regards,
Tim Shen