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++/61227] New: [C++11] Regex does not work


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61227

            Bug ID: 61227
           Summary: [C++11] Regex does not work
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fatony at fatony dot net

Created attachment 32819
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32819&action=edit
Code sample

The attached code produces std::regex_error in g++ 4.9.0.

Here's what debugger says:
Debugger name and version: GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1)
In __cxa_throw () (/usr/lib/x86_64-linux-gnu/libstdc++.so.6)
#2  0x0000000000410380 in std::__detail::_Compiler<std::regex_traits<char>
>::_M_expression_term<false, false> (this=0x7fffffffe3f0, __matcher=...) at
/usr/include/c++/4.9/bits/regex_compiler.tcc:455
/usr/include/c++/4.9/bits/regex_compiler.tcc:455:13755:beg:0x410380
At /usr/include/c++/4.9/bits/regex_compiler.tcc:455


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