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

            Bug ID: 118408
           Summary: regex does not work under dual ABI
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rs2740 at gmail dot com
  Target Milestone: ---

Despite regex itself (and regex_traits) being ABI-tagged,
std::__detail::_Scanner is not, and that class contains a data member

      _StringT                      _M_value;

aka basic_string<_CharT>.

Even though _Scanner is only used as a member of _Compiler which _is_
ABI-tagged by virtual of its regex_traits template argument, the member
functions of _Scanner still need to be mangled differently if both ABIs are to
co-exist in the same program.

It may be too late to fix this though, but it's nice to at least have an issue
to track it.

This was raised in
https://stackoverflow.com/questions/51382355/stdregex-and-dual-abi a long time
ago, but unfortunately not reported then.

Reply via email to