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

[MSVC 7.1] compilation errors in 20.auto.ptr.cpp

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Tests
    • Labels:
      None
    • Environment:

      MSVC 7.1

    • Severity:
      Compiler Error

      Description

      The test 20.auto.ptr.cpp fails to compile with MSVC 7.1:

      ------ Build started: Project: 20.auto.ptr, Configuration: 15s Debug Thread-safe Static Win32 ------

      Compiling...
      20.auto.ptr.cpp
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(212) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr_ref<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=std::auto_ptr<Base>::element_type
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(438) : see reference to function template instantiation 'void test_auto_ptr<bool>(T *,const char *)' being compiled
      with
      [
      T=bool
      ]
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(215) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=Base
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(212) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr_ref<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=std::auto_ptr<Base>::element_type
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(442) : see reference to function template instantiation 'void test_auto_ptr<char>(T *,const char *)' being compiled
      with
      [
      T=char
      ]
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(215) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=Base
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(212) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr_ref<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=std::auto_ptr<Base>::element_type
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(443) : see reference to function template instantiation 'void test_auto_ptr<int>(T *,const char *)' being compiled
      with
      [
      T=int
      ]
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(215) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=Base
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(212) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr_ref<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=std::auto_ptr<Base>::element_type
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(444) : see reference to function template instantiation 'void test_auto_ptr<double>(T *,const char *)' being compiled
      with
      [
      T=double
      ]
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(215) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=Base
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(212) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr_ref<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=std::auto_ptr<Base>::element_type
      ]
      None of the functions with this name in scope match the target type
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(445) : see reference to function template instantiation 'void test_auto_ptr<void*>(T * ,const char *)' being compiled
      with
      [
      T=void *
      ]
      \stdcxx\stdcxx-4.2.x\tests\utilities\20.auto.ptr.cpp(215) : error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'std::auto_ptr<TypeT> (_thiscall std::auto_ptr<Derived>::* )(void)'
      with
      [
      _TypeT=Base
      ]
      None of the functions with this name in scope match the target type

      Build log was saved at "file://D:\stdcxx\stdcxx-4.2.x\build\msvc-7.1\15s\tests\20.auto.ptr\BuildLog.htm"
      20.auto.ptr - 10 error(s), 0 warning(s)

      ---------------------- Done ----------------------

      Build: 0 succeeded, 1 failed, 0 skipped

        Attachments

          Activity

            People

            • Assignee:
              farid Farid Zaripov
              Reporter:
              farid Farid Zaripov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment