[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 --- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org --- Your program's invalid for other reasons too, you can't mix strdup and delete.

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-20 Thread aral at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 --- Comment #8 from aral at gmx dot de --- I agree that updating the documentation exceeds the responsibility of this bug reporting system, and if the behavior is intended, it is not a bug. The severity was referring to the case had the behavior

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-20 Thread cubbi at cubbi dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 Sergey Zubkov cubbi at cubbi dot org changed: What|Removed |Added CC||cubbi at cubbi dot

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-19 Thread aral at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 --- Comment #1 from aral at gmx dot de --- AFAICT the same bug is applicable to the regex_match function. Sorry for the copy paste error in the very last comment.

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-19 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 --- Comment #5 from Daniel Krügler daniel.kruegler at googlemail dot com --- (In reply to aral from comment #3) I don't argue that it might be a misunderstanding of the user, hence my suggestion 1) - however, I disagree with your wording

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-19 Thread aral at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 --- Comment #3 from aral at gmx dot de --- I don't argue that it might be a misunderstanding of the user, hence my suggestion 1) - however, I disagree with your wording clearly documented as far as (a)

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-19 Thread aral at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 --- Comment #4 from aral at gmx dot de --- Addition: after you referred to the properties of match_results, I had a look at http://en.cppreference.com/w/cpp/regex/match_results which has a clearer wording. However, I still think this clear

[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed

2015-03-19 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 Daniel Krügler daniel.kruegler at googlemail dot com changed: What|Removed |Added CC|