[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 changed: What|Removed |Added CC||cubbi at cubbi dot org --- Comment #9 fr

[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 b

[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 --- 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 redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[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 --- (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 "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 sta

[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) http://en.cppreference.com/w/cpp/regex/reg

[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 changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[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.