You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/04/09 22:57:32 UTC
[jira] Commented: (STDCXX-390) [HP aCC 3.73] error on
std::uninitialized_copy()
[ https://issues.apache.org/jira/browse/STDCXX-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487629 ]
Martin Sebor commented on STDCXX-390:
-------------------------------------
This failure is also causing tests/utilities/20.specialized.cpp to fail to compile. For example:
aCC -c -I$(TOPDIR)/include/ansi -I/usr/include -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -Aa +nostl +O2 +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 $(TOPDIR)/tests/utilities/20.specialized.cpp
Error 226: "$(TOPDIR)/include/rw/_specialized.h", line 164 # No appropriate function found for call of '__rw_construct'. Last viable candidate was "void __rw::__rw_construct<Y,int>(Y *,const int &)" ["$(TOPDIR)/include/rw/_specialized.h", line 84]. Argument of type 'const volatile int' could not be converted to 'const int &'.
_RW::__rw_construct (&*__res, *__first);
^^^^^^^^^^^^^^^^^^^
Error 556: "$(TOPDIR)/tests/utilities/20.specialized.cpp", line 138 # Unable to generate specialization "FwdIter<Y> std::uninitialized_copy<const volatile int *,FwdIter<Y> >(const volatile int *,const volatile int *,FwdIter<Y>)" due to errors during generation.
std::uninitialized_copy (first, last, result);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error 556: "$(TOPDIR)/tests/utilities/20.specialized.cpp", line 138 # Unable to generate specialization "FwdIter<Y> std::uninitialized_copy<const volatile int *,FwdIter<Y> >(const volatile int *,const volatile int *,FwdIter<Y>)" due to errors during generation.
std::uninitialized_copy (first, last, result);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gmake: *** [20.specialized.o] Error 2
> [HP aCC 3.73] error on std::uninitialized_copy<volatile T*, U>()
> ----------------------------------------------------------------
>
> Key: STDCXX-390
> URL: https://issues.apache.org/jira/browse/STDCXX-390
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 20. General Utilities
> Affects Versions: 4.2
> Environment: HP aCC 3.73 and prior
> Reporter: Martin Sebor
>
> The program below fails to compile with HP aCC 3.73. It compiles successfully with other compilers (including the EDG eccp-based aCC 3.76 beta)
> $ cat t.cpp && nice gmake _CXXOPTS=-V t
> #include <memory>
> int main ()
> {
> int i = 0;
> const int ci = 0;
> volatile int vi = 0;
> const volatile int cvi = 0;
> std::uninitialized_copy (&i, &i, &i);
> std::uninitialized_copy (&i, &i, &vi);
> std::uninitialized_copy (&ci, &ci, &i);
> std::uninitialized_copy (&ci, &ci, &vi);
> std::uninitialized_copy (&vi, &vi, &i);
> std::uninitialized_copy (&vi, &vi, &vi);
> std::uninitialized_copy (&cvi, &cvi, &i);
> std::uninitialized_copy (&cvi, &cvi, &vi);
> }
> 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/tests/include -Aa +nostl -V +O2 +Oinitcheck +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 t.cpp
> aCC: HP ANSI C++ B3910B A.03.73
> Error 226: "/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 164 # No appropriate function
> found for call of '__rw_construct'. Last viable candidate was "void
> __rw::__rw_construct<int,int>(int *,const int &)"
> ["/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 84]. Argument of type 'volatile
> int' could not be converted to 'const int &'.
> _RW::__rw_construct (&*__res, *__first);
> ^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 16 # Unable to generate specialization "int
> *std::uninitialized_copy<volatile int *,int *>(volatile int *,volatile int *,int *)" due to
> errors during generation.
> std::uninitialized_copy (&vi, &vi, &i);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 16 # Unable to generate specialization "int
> *std::uninitialized_copy<volatile int *,int *>(volatile int *,volatile int *,int *)" due to
> errors during generation.
> std::uninitialized_copy (&vi, &vi, &i);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 226: "/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 164 # No appropriate function
> found for call of '__rw_construct'. Last viable candidate was "void
> __rw::__rw_construct<int,int>(volatile int *,const int &)"
> ["/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 92]. Argument of type 'volatile
> int' could not be converted to 'const int &'.
> _RW::__rw_construct (&*__res, *__first);
> ^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 17 # Unable to generate specialization "volatile int
> *std::uninitialized_copy<volatile int *,volatile int *>(volatile int *,volatile int *,volatile
> int *)" due to errors during generation.
> std::uninitialized_copy (&vi, &vi, &vi);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 17 # Unable to generate specialization "volatile int
> *std::uninitialized_copy<volatile int *,volatile int *>(volatile int *,volatile int *,volatile
> int *)" due to errors during generation.
> std::uninitialized_copy (&vi, &vi, &vi);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 226: "/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 164 # No appropriate function
> found for call of '__rw_construct'. Last viable candidate was "void
> __rw::__rw_construct<int,int>(int *,const int &)"
> ["/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 84]. Argument of type 'const
> volatile int' could not be converted to 'const int &'.
> _RW::__rw_construct (&*__res, *__first);
> ^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 19 # Unable to generate specialization "int
> *std::uninitialized_copy<const volatile int *,int *>(const volatile int *,const volatile int
> *,int *)" due to errors during generation.
> std::uninitialized_copy (&cvi, &cvi, &i);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 19 # Unable to generate specialization "int
> *std::uninitialized_copy<const volatile int *,int *>(const volatile int *,const volatile int
> *,int *)" due to errors during generation.
> std::uninitialized_copy (&cvi, &cvi, &i);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 226: "/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 164 # No appropriate function
> found for call of '__rw_construct'. Last viable candidate was "void
> __rw::__rw_construct<int,int>(volatile int *,const int &)"
> ["/amd/devco/sebor/stdcxx/include/rw/_specialized.h", line 92]. Argument of type 'const
> volatile int' could not be converted to 'const int &'.
> _RW::__rw_construct (&*__res, *__first);
> ^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 20 # Unable to generate specialization "volatile int
> *std::uninitialized_copy<const volatile int *,volatile int *>(const volatile int *,const
> volatile int *,volatile int *)" due to errors during generation.
> std::uninitialized_copy (&cvi, &cvi, &vi);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 556: "t.cpp", line 20 # Unable to generate specialization "volatile int
> *std::uninitialized_copy<const volatile int *,volatile int *>(const volatile int *,const
> volatile int *,volatile int *)" due to errors during generation.
> std::uninitialized_copy (&cvi, &cvi, &vi);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Error 445: "t.cpp", line 3 # Cannot recover from earlier errors.
> int main ()
> ^^^^^^^^^^^
> gmake: *** [t.o] Error 2
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.