[ 
https://issues.apache.org/jira/browse/STDCXX-669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Farid Zaripov resolved STDCXX-669.
----------------------------------

    Resolution: Fixed

Resolved thus: http://svn.apache.org/viewvc?rev=596354&view=rev

> [MSVC 7.1] compilation errors in 20.auto.ptr.cpp
> ------------------------------------------------
>
>                 Key: STDCXX-669
>                 URL: https://issues.apache.org/jira/browse/STDCXX-669
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.2.0
>         Environment: MSVC 7.1
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Minor
>             Fix For: 4.2.1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to