This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53622] New: C++11 regex captures extra characters
- From: "whatmannerofburgeristhis at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 10 Jun 2012 01:04:28 +0000
- Subject: [Bug libstdc++/53622] New: C++11 regex captures extra characters
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53622
Bug #: 53622
Summary: C++11 regex captures extra characters
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: whatmannerofburgeristhis@gmail.com
Created attachment 27593
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27593
Test case
Trying to use std::ragex_match captures extra characters that it shouldn't.
Example:
"zxcv/(one.*)abc" matching "zxcv/onetwoabc"
This captures the / as well as the trailing abc.
Tested with MacPorts gcc 4.7 and 4.8 from 20120603