This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::regex: inserting std::wregex to std::vector loses some std::wregex values


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]