[ https://issues.apache.org/jira/browse/STDCXX-341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov resolved STDCXX-341. ---------------------------------- Resolution: Fixed Fixed thus: http://svn.apache.org/viewvc?view=rev&rev=509951 > [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 23.vector.modifiers fails to compile with MSVC 7.1: > ------ 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 make_iter(const T *,const T *,const T *,ConstFwdIter)' > with > [ > T=X > ] > C:\stdcxx_working\tests\include\alg_test.h(1010): or 'FwdIter make_iter(T *,const T *,const T *,FwdIter)' > with > [ > T=X > ] > while trying to match the argument list '(X *const , X *const , X *const , const ConstFwdIter)' > 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(int,const Iterator &,int,const char *,size_t,size_t,int,const char *,size_t,const char *,size_t)' being compiled > with > [ > Iterator=ConstFwdIter > ] > \stdcxx_working\tests\containers\23.vector.modifiers.cpp(1181) : see reference to function template instantiation 'void test_insert_range>(const Iterator &)' being compiled > with > [ > T=X, > Iterator=ConstFwdIter > ] > \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 make_iter(const T *,const T *,const T *,ConstFwdIter)' > with > [ > T=X > ] > C:\stdcxx_working\tests\include\alg_test.h(1010): or 'FwdIter make_iter(T *,const T *,const T *,FwdIter)' > with > [ > T=X > ] > while trying to match the argument list '(X *const , X *const , X *const , const ConstFwdIter)' > 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 make_iter(const T *,const T *,const T *,ConstBidirIter)' > with > [ > T=X > ] > C:\stdcxx_working\tests\include\alg_test.h(1048): or 'BidirIter make_iter(T *,const T *,const T *,BidirIter)' > with > [ > T=X > ] > while trying to match the argument list '(X *const , X *const , X *const , const ConstBidirIter)' > 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(int,const Iterator &,int,const char *,size_t,size_t,int,const char *,size_t,const char *,size_t)' being compiled > with > [ > Iterator=ConstBidirIter > ] > \stdcxx_working\tests\containers\23.vector.modifiers.cpp(1189) : see reference to function template instantiation 'void test_insert_range>(const Iterator &)' being compiled > with > [ > T=X, > Iterator=ConstBidirIter > ] > \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 make_iter(const T *,const T *,const T *,ConstBidirIter)' > with > [ > T=X > ] > C:\stdcxx_working\tests\include\alg_test.h(1048): or 'BidirIter make_iter(T *,const T *,const T *,BidirIter)' > with > [ > T=X > ] > while trying to match the argument list '(X *const , X *const , X *const , const ConstBidirIter)' > 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 make_iter(const T *,const T *,const T *,ConstRandomAccessIter)' > with > [ > T=X > ] > C:\stdcxx_working\tests\include\alg_test.h(1086): or 'RandomAccessIter make_iter(T *,const T *,const T *,RandomAccessIter)' > with > [ > T=X > ] > while trying to match the argument list '(X *const , X *const , X *const , const ConstRandomAccessIter)' > 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(int,const Iterator &,int,const char *,size_t,size_t,int,const char *,size_t,const char *,size_t)' being compiled > with > [ > Iterator=ConstRandomAccessIter > ] > \stdcxx_working\tests\containers\23.vector.modifiers.cpp(1197) : see reference to function template instantiation 'void test_insert_range>(const Iterator &)' being compiled > with > [ > T=X, > Iterator=ConstRandomAccessIter > ] > \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 make_iter(const T *,const T *,const T *,ConstRandomAccessIter)' > with > [ > T=X > ] > C:\stdcxx_working\tests\include\alg_test.h(1086): or 'RandomAccessIter make_iter(T *,const T *,const T *,RandomAccessIter)' > with > [ > T=X > ] > while trying to match the argument list '(X *const , X *const , X *const , const ConstRandomAccessIter)' > 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.