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: [libstdc++][PATCH] missing return statement in basic_regex::assign(basic_regex&&)


On 13 February 2015 at 14:11, PaweÅ Tomulik wrote:
> Hi,
>
> the header file  <bits/regex.h> of libstdc++-v3 of gcc-4.9 is missing
> return statement in the implementation of
> basic_regex::assign(basic_regex&&). This is about line 619. The minimal
> example to reproduce this bug is the following:
>
> #include <regex>
> int main()
> {
>   std::regex re;
>   re.assign(std::regex("blabla"));
>   return EXIT_SUCCESS;
> }
>
> When compiled with clang and run it produces SIGILL:
>
> ptomulik@tea:$ clang++ -std=c++11 -g -O0 -o test test.cpp
> ptomulik@tea:$ ./test
>
> I attach patch created with git against the "gcc-4_9_2-release" tag.

Thanks (again :-)

I was about to apply the patch and found it was already fixed at
https://gcc.gnu.org/r219868 so will be included in GCC 4.9.3


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