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

[HP aCC 3.73] compilation errors in 20.auto.ptr.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.2.0
    • 4.2.1
    • Tests
    • None
    • HP aCC 3.73

    • Compiler Error

    Description

      From http://www.nabble.com/Re%3A--VOTE--release-stdcxx-4.2.0-%28candidate-7%29-p13373483.html:

      The test 20.auto.ptr.cpp fails to compile with HP aCC 3.73:

      aCC -c -D_RWSTDDEBUG -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA -g +d +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 $(TOPDIR)/tests/utilities/20.auto.ptr.cpp
      Error 902: "$(TOPDIR)/tests/utilities/20.auto.ptr.cpp", line 292 # Template deduction failed to find a match for the call to 'operator =' with signature 'void (std::auto_ptr<void> *,std::auto_ptr<void>)'.
      ap1.operator=<void>(ap1);
      ^^^^^^^
      Error 187: "$(TOPDIR)/tests/utilities/20.auto.ptr.cpp", line 314 # Referenced object 'operator std::auto_ptr_ref<void>' is not a member of class auto_ptr<void> ["$(TOPDIR)/include/rw/_autoptr.h", line 126].
      const std::auto_ptr_ref<void> ar = ap1.operator std::auto_ptr_ref<void>();
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      Error 226: "$(TOPDIR)/tests/utilities/20.auto.ptr.cpp", line 314 # No appropriate function found for call of 'auto_ptr_ref::auto_ptr_ref'. Last viable candidate was "std::auto_ptr_ref<void>::auto_ptr_ref(const std::auto_ptr_ref<void> &)" ["$(TOPDIR)/include/rw/_autoptr.h", line 97]. Argument of type 'int' could not be converted to 'const std::auto_ptr_ref<void> &'.
      const std::auto_ptr_ref<void> ar = ap1.operator std::auto_ptr_ref<void>();
      ^^
      Error 187: "$(TOPDIR)/tests/utilities/20.auto.ptr.cpp", line 315 # Referenced object 'operator std::auto_ptr<void>' is not a member of class auto_ptr<void> ["$(TOPDIR)/include/rw/_autoptr.h", line 126].
      const std::auto_ptr<void> ap5 = ap1.operator std::auto_ptr<void>();
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      Error 226: "$(TOPDIR)/tests/utilities/20.auto.ptr.cpp", line 315 # No appropriate function found for call of 'auto_ptr::auto_ptr'. Last viable candidate was "std::auto_ptr<void>::auto_ptr(std::auto_ptr<void> &)" ["$(TOPDIR)/include/rw/_autoptr.h", line 136]. Argument of type 'int' could not be converted to 'std::auto_ptr<void> &'.
      const std::auto_ptr<void> ap5 = ap1.operator std::auto_ptr<void>();
      ^^^
      gmake: *** [20.auto.ptr.o] Error 2

      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: