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++/81967] New: No overload std::basic_string::erase(__const_iterator, __const_iterator) old ABI


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

            Bug ID: 81967
           Summary: No overload std::basic_string::erase(__const_iterator,
                    __const_iterator) old ABI
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: v.barinov at samsung dot com
  Target Milestone: ---

Created attachment 42037
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42037&action=edit
Bug example

include/bits/basic_string.h lacks overload of
std::basic_string::erase(__const_iterator, __const_iterator) for old abi.

 g++ test.cxx -DGLIBCXX_USE_CXX11_ABI=1

is okay, but

 g++ test.cxx -DGLIBCXX_USE_CXX11_ABI=0

 test.cxx:7:15: error: no matching function for call to
‘std::basic_string<char>::erase(const const_iterator&, const const_iterator&)’

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