This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/53622] New: C++11 regex captures extra characters


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


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