[HP cadvise] error #2101 on std::vector::insert()
-------------------------------------------------
Key: STDCXX-385
URL: https://issues.apache.org/jira/browse/STDCXX-385
Project: C++ Standard Library
Issue Type: Bug
Components: 23. Containers
Affects Versions: 4.1.3
Environment: HP cadvise with aCC 3.73
Reporter: Martin Sebor
Compiling vector::insert() with HP aCC -Aa under HP cadvise gives the error
below:
cadvise aCC -c -I/amd/devco/sebor/stdcxx/include/ansi -I/usr/include -mt
-I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-aCC-3.73-12D/include
-I/amd/devco/sebor/stdcxx/examples/include -Aa +nostl +O2 +DD64 +w +W392
+W655 +W684 +W818 +W819 +W849
/amd/devco/sebor/stdcxx/examples/manual/accumulate.cpp
"/amd/devco/sebor/stdcxx/include/vector.cc", line 653: error #2101: "__p" has
already been declared in the current scope
for (pointer __p = __end; __movend < __p--; )
^
detected during:
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_insert_range(std::vector<_TypeT,
_Allocator>::iterator, _FwdIter, _FwdIter,
std::forward_iterator_tag) [with _TypeT=int,
_Allocator=std::allocator<int>,
_FwdIter=std::allocator<int>::value_type *]" at line 444
of "/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_insert(const std::vector<_TypeT,
_Allocator>::iterator &, _InputIter, _InputIter, void *)
[with _TypeT=int, _Allocator=std::allocator<int>,
_InputIter=std::allocator<int>::value_type *]" at line
348 of "/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::insert(std::vector<_TypeT,
_Allocator>::iterator, _InputIter, _InputIter) [with
_TypeT=int, _Allocator=std::allocator<int>,
_InputIter=std::allocator<int>::value_type *]" at line
460
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_assign_range(_FwdIter, _FwdIter,
std::forward_iterator_tag) [with _TypeT=int,
_Allocator=std::allocator<int>,
_FwdIter=std::allocator<int>::value_type *]" at line 418
of "/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_assign(_InputIter, _InputIter, void *)
[with _TypeT=int, _Allocator=std::allocator<int>,
_InputIter=std::allocator<int>::value_type *]" at line
230 of "/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::assign(_InputIter, _InputIter) [with
_TypeT=int, _Allocator=std::allocator<int>,
_InputIter=std::allocator<int>::value_type *]" at line
138
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_unsafe_swap(std::vector<_TypeT,
_Allocator> &) [with _TypeT=int,
_Allocator=std::allocator<int>]" at line 663 of
"/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::swap(std::vector<_TypeT, _Allocator> &)
[with _TypeT=int, _Allocator=std::allocator<int>]" at
line 104
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_realloc(std::vector<_TypeT,
_Allocator>::size_type) [with _TypeT=int,
_Allocator=std::allocator<int>]" at line 565 of
"/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::reserve(std::vector<_TypeT,
_Allocator>::size_type) [with _TypeT=int,
_Allocator=std::allocator<int>]" at line 433
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_assign_range(_FwdIter, _FwdIter,
std::forward_iterator_tag) [with _TypeT=int,
_Allocator=std::allocator<int>, _FwdIter=const
std::vector<int, std::allocator<int>>::value_type *]" at
line 417 of "/amd/devco/sebor/stdcxx/include/vector"
"/amd/devco/sebor/stdcxx/include/vector.cc", line 653: error #2101: "__p" has
already been declared in the current scope
for (pointer __p = __end; __movend < __p--; )
^
detected during:
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_insert_range(std::vector<_TypeT,
_Allocator>::iterator, _FwdIter, _FwdIter,
std::forward_iterator_tag) [with _TypeT=int,
_Allocator=std::allocator<int>, _FwdIter=const
std::vector<int, std::allocator<int>>::value_type *]" at
line 444 of "/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_insert(const std::vector<_TypeT,
_Allocator>::iterator &, _InputIter, _InputIter, void *)
[with _TypeT=int, _Allocator=std::allocator<int>,
_InputIter=const std::vector<int,
std::allocator<int>>::value_type *]" at line 348 of
"/amd/devco/sebor/stdcxx/include/vector"
instantiation of "void std::vector<_TypeT,
_Allocator>::insert(std::vector<_TypeT,
_Allocator>::iterator, _InputIter, _InputIter) [with
_TypeT=int, _Allocator=std::allocator<int>,
_InputIter=const std::vector<int,
std::allocator<int>>::value_type *]" at line 460
instantiation of "void std::vector<_TypeT,
_Allocator>::_C_assign_range(_FwdIter, _FwdIter,
std::forward_iterator_tag) [with _TypeT=int,
_Allocator=std::allocator<int>, _FwdIter=const
std::vector<int, std::allocator<int>>::value_type *]" at
line 417 of "/amd/devco/sebor/stdcxx/include/vector"
2 errors detected in the compilation of
"/amd/devco/sebor/stdcxx/examples/manual/accumulate.cpp".
cadvise: warning 108: error while analyzing file
"/amd/devco/sebor/stdcxx/examples/manual/accumulate.cpp"
cadvise aCC accumulate.o -o accumulate -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings
-mt +DD64 -L/build/sebor/stdcxx-aCC-3.73-12D/lib
-Wl,+b/build/sebor/stdcxx-aCC-3.73-12D/lib -lstd12D -lm
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.