[MSVC 7.1] tests/23.vector.modifiers.cpp fails to compile ---------------------------------------------------------
Key: STDCXX-341 URL: https://issues.apache.org/jira/browse/STDCXX-341 Project: C++ Standard Library Issue Type: Bug Components: Tests Environment: MSVC 7.1 Reporter: Farid Zaripov Fix For: 4.2 The test 22.locale.num.get fails to compile with MSVC: ------ Build started: Project: 23.vector.modifiers, Configuration: 11s Debug Static Win32 ------ Compiling... 23.vector.modifiers.cpp \stdcxx_working\tests\containers\23.vector.modifiers.cpp(325) : error C2666: 'make_iter' : 2 overloads have similar conversions C:\stdcxx_working\tests\include\alg_test.h(1029): could be 'ConstFwdIter<T> make_iter<X>(const T *,const T *,const T *,ConstFwdIter<T>)' with [ T=X ] C:\stdcxx_working\tests\include\alg_test.h(1010): or 'FwdIter<T> make_iter<X>(T *,const T *,const T *,FwdIter<T>)' with [ T=X ] while trying to match the argument list '(X *const , X *const , X *const , const ConstFwdIter<T>)' with [ T=X ] note: qualification adjustment (const/volatile) may be causing the ambiguity \stdcxx_working\tests\containers\23.vector.modifiers.cpp(567) : see reference to function template instantiation 'void test_insert<Iterator>(int,const Iterator &,int,const char *,size_t,size_t,int,const char *,size_t,const char *,size_t)' being compiled with [ Iterator=ConstFwdIter<X> ] \stdcxx_working\tests\containers\23.vector.modifiers.cpp(1181) : see reference to function template instantiation 'void test_insert_range<ConstFwdIter<T>>(const Iterator &)' being compiled with [ T=X, Iterator=ConstFwdIter<X> ] \stdcxx_working\tests\containers\23.vector.modifiers.cpp(328) : error C2666: 'make_iter' : 2 overloads have similar conversions C:\stdcxx_working\tests\include\alg_test.h(1029): could be 'ConstFwdIter<T> make_iter<X>(const T *,const T *,const T *,ConstFwdIter<T>)' with [ T=X ] C:\stdcxx_working\tests\include\alg_test.h(1010): or 'FwdIter<T> make_iter<X>(T *,const T *,const T *,FwdIter<T>)' with [ T=X ] while trying to match the argument list '(X *const , X *const , X *const , const ConstFwdIter<T>)' with [ T=X ] note: qualification adjustment (const/volatile) may be causing the ambiguity \stdcxx_working\tests\containers\23.vector.modifiers.cpp(325) : error C2666: 'make_iter' : 2 overloads have similar conversions C:\stdcxx_working\tests\include\alg_test.h(1067): could be 'ConstBidirIter<T> make_iter<X>(const T *,const T *,const T *,ConstBidirIter<T>)' with [ T=X ] C:\stdcxx_working\tests\include\alg_test.h(1048): or 'BidirIter<T> make_iter<X>(T *,const T *,const T *,BidirIter<T>)' with [ T=X ] while trying to match the argument list '(X *const , X *const , X *const , const ConstBidirIter<T>)' with [ T=X ] note: qualification adjustment (const/volatile) may be causing the ambiguity \stdcxx_working\tests\containers\23.vector.modifiers.cpp(567) : see reference to function template instantiation 'void test_insert<Iterator>(int,const Iterator &,int,const char *,size_t,size_t,int,const char *,size_t,const char *,size_t)' being compiled with [ Iterator=ConstBidirIter<X> ] \stdcxx_working\tests\containers\23.vector.modifiers.cpp(1189) : see reference to function template instantiation 'void test_insert_range<ConstBidirIter<T>>(const Iterator &)' being compiled with [ T=X, Iterator=ConstBidirIter<X> ] \stdcxx_working\tests\containers\23.vector.modifiers.cpp(328) : error C2666: 'make_iter' : 2 overloads have similar conversions C:\stdcxx_working\tests\include\alg_test.h(1067): could be 'ConstBidirIter<T> make_iter<X>(const T *,const T *,const T *,ConstBidirIter<T>)' with [ T=X ] C:\stdcxx_working\tests\include\alg_test.h(1048): or 'BidirIter<T> make_iter<X>(T *,const T *,const T *,BidirIter<T>)' with [ T=X ] while trying to match the argument list '(X *const , X *const , X *const , const ConstBidirIter<T>)' with [ T=X ] note: qualification adjustment (const/volatile) may be causing the ambiguity \stdcxx_working\tests\containers\23.vector.modifiers.cpp(325) : error C2666: 'make_iter' : 2 overloads have similar conversions C:\stdcxx_working\tests\include\alg_test.h(1105): could be 'ConstRandomAccessIter<T> make_iter<X>(const T *,const T *,const T *,ConstRandomAccessIter<T>)' with [ T=X ] C:\stdcxx_working\tests\include\alg_test.h(1086): or 'RandomAccessIter<T> make_iter<X>(T *,const T *,const T *,RandomAccessIter<T>)' with [ T=X ] while trying to match the argument list '(X *const , X *const , X *const , const ConstRandomAccessIter<T>)' with [ T=X ] note: qualification adjustment (const/volatile) may be causing the ambiguity \stdcxx_working\tests\containers\23.vector.modifiers.cpp(567) : see reference to function template instantiation 'void test_insert<Iterator>(int,const Iterator &,int,const char *,size_t,size_t,int,const char *,size_t,const char *,size_t)' being compiled with [ Iterator=ConstRandomAccessIter<X> ] \stdcxx_working\tests\containers\23.vector.modifiers.cpp(1197) : see reference to function template instantiation 'void test_insert_range<ConstRandomAccessIter<T>>(const Iterator &)' being compiled with [ T=X, Iterator=ConstRandomAccessIter<X> ] \stdcxx_working\tests\containers\23.vector.modifiers.cpp(328) : error C2666: 'make_iter' : 2 overloads have similar conversions C:\stdcxx_working\tests\include\alg_test.h(1105): could be 'ConstRandomAccessIter<T> make_iter<X>(const T *,const T *,const T *,ConstRandomAccessIter<T>)' with [ T=X ] C:\stdcxx_working\tests\include\alg_test.h(1086): or 'RandomAccessIter<T> make_iter<X>(T *,const T *,const T *,RandomAccessIter<T>)' with [ T=X ] while trying to match the argument list '(X *const , X *const , X *const , const ConstRandomAccessIter<T>)' with [ T=X ] note: qualification adjustment (const/volatile) may be causing the ambiguity Build log was saved at "file://C:\stdcxx_working\build\msvc-7.1\11s\tests\23.vector.modifiers\BuildLog.htm" 23.vector.modifiers - 6 error(s), 0 warning(s) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.