Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-271

[HP aCC 3.70] unsats on basic_string::replace() member template

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.1.2, 4.1.3
    • 4.2.0
    • 21. Strings
    • None
    • HP aCC 3.63 through 3.73

    Description

      The program below fails to link with HP aCC 3.70:

      $ cat t.cpp && nice gmake t
      #include <string>

      int main ()
      {
      const char c = '\0';
      std::wstring s (&c, &c);
      s.append (&c, &c);
      s.assign (&c, &c);
      s.insert (s.begin (), &c, &c);
      s.replace (s.begin (), s.end (), &c, &c);
      }
      aCC -c -I/amd/devco/sebor/dev/stdlib/include/ansi -I/usr/include -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/aCC-3.70-11d/include -I/amd/devco/sebor/dev/stdlib/examples/include -Aa +nostl -g +d +w +W392 +W655 +W684 +W818 +W819 +W849 t.cpp
      aCC t.o -o t -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings -L/build/sebor/aCC-3.70-11d/lib -L/build/sebor/aCC-3.70-11d/lib -lstd11d -lm
      /usr/ccs/bin/ld: Unsatisfied symbols:
      std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>::replace<const char *>(_rw::rw_debug_iter<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>,wchar_t *,wchar_t *>,rw::_rw_debug_iter<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>,wchar_t *,wchar_t *>,const char *,const char *,void *) (first referenced in t.o) (code)
      gmake: *** [t] Error 1

      Attachments

        Issue Links

          Activity

            People

              sebor Martin Sebor
              sebor Martin Sebor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: