public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/111713] New: libstdc++ accepts regular expression @ 2023-10-06 9:28 hewillk at gmail dot com 2023-10-06 9:29 ` [Bug libstdc++/111713] libstdc++ accepts invalid " hewillk at gmail dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: hewillk at gmail dot com @ 2023-10-06 9:28 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111713 Bug ID: 111713 Summary: libstdc++ accepts regular expression Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- #include <regex> #include <iostream> #include <cassert> int main() { std::regex invalid_re("AAA\\s*(\\w+*)"); // should throw std::smatch match; std::string str("AAA BBB"); assert(std::regex_match(str, match, invalid_re)); std::cout << match[1] << "\n"; // libstdc++ prints BBB } https://godbolt.org/z/1zrv1Wf71 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/111713] libstdc++ accepts invalid regular expression 2023-10-06 9:28 [Bug libstdc++/111713] New: libstdc++ accepts regular expression hewillk at gmail dot com @ 2023-10-06 9:29 ` hewillk at gmail dot com 2023-10-06 9:48 ` pinskia at gcc dot gnu.org 2023-10-07 11:32 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: hewillk at gmail dot com @ 2023-10-06 9:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111713 --- Comment #1 from 康桓瑋 <hewillk at gmail dot com> --- The "+*" part is not valid. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/111713] libstdc++ accepts invalid regular expression 2023-10-06 9:28 [Bug libstdc++/111713] New: libstdc++ accepts regular expression hewillk at gmail dot com 2023-10-06 9:29 ` [Bug libstdc++/111713] libstdc++ accepts invalid " hewillk at gmail dot com @ 2023-10-06 9:48 ` pinskia at gcc dot gnu.org 2023-10-07 11:32 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-10-06 9:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111713 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=111129 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Dup of bug 111129? ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/111713] libstdc++ accepts invalid regular expression 2023-10-06 9:28 [Bug libstdc++/111713] New: libstdc++ accepts regular expression hewillk at gmail dot com 2023-10-06 9:29 ` [Bug libstdc++/111713] libstdc++ accepts invalid " hewillk at gmail dot com 2023-10-06 9:48 ` pinskia at gcc dot gnu.org @ 2023-10-07 11:32 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: redi at gcc dot gnu.org @ 2023-10-07 11:32 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111713 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, it's a dup *** This bug has been marked as a duplicate of bug 111129 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-07 11:32 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-10-06 9:28 [Bug libstdc++/111713] New: libstdc++ accepts regular expression hewillk at gmail dot com 2023-10-06 9:29 ` [Bug libstdc++/111713] libstdc++ accepts invalid " hewillk at gmail dot com 2023-10-06 9:48 ` pinskia at gcc dot gnu.org 2023-10-07 11:32 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).