The test fails to compile with HP aCC 3.63. The error messages
point to the patch for the issue:

  http://svn.apache.org/viewvc?view=rev&revision=629550

Looking at the patch I don't see how the reinterpret_cast to
const_reference can possibly be correct, and I'm not sure we
satisfactorily resolved the same question the first time it
was raised back in March:

  http://markmail.org/message/eijfmt3wxhg25bvs

Farid?

Thanks
Martin


aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +w +W392,655,684,818,819,849 $(TOPDIR)/tests/regress/21.string.append.stdcxx-438.cpp Error 280: "$(TOPDIR)/include/string.cc", line 523 # Operator & expects lvalue operand.
                _RWSTD_REINTERPRET_CAST (const_pointer, &*__first2);
                ^^^^^^^^^^^^^^^^^^^^^^^
Error 280: "$(TOPDIR)/include/string.cc", line 525 # Operator & expects lvalue operand.
                _RWSTD_REINTERPRET_CAST (const_pointer, &*__last2);
                ^^^^^^^^^^^^^^^^^^^^^^^
Error 556: "$(TOPDIR)/tests/regress/21.string.append.stdcxx-438.cpp", line 85 # Unable to generate specialization "std::basic_string<char,std::char_traits<char>,std::allocator<char> > &std::__rw_replace<char,std::char_traits<char>,std::allocator<char>,char *,InputIterator>(std::basic_string<char,std::char_traits<char>,std::allocator<char> > &,char *,char *,InputIterator,InputIterator)" due to errors during generation.
            str.append (first, last);
            ^^^^^^^^^^^^^^^^^^^^^^^^
Error 556: "$(TOPDIR)/tests/regress/21.string.append.stdcxx-438.cpp", line 85 # Unable to generate specialization "std::basic_string<char,std::char_traits<char>,std::allocator<char> > &std::__rw_replace<char,std::char_traits<char>,std::allocator<char>,char *,InputIterator>(std::basic_string<char,std::char_traits<char>,std::allocator<char> > &,char *,char *,InputIterator,InputIterator)" due to errors during generation.
            str.append (first, last);
            ^^^^^^^^^^^^^^^^^^^^^^^^
gmake: *** [21.string.append.stdcxx-438.o] Error 2

Reply via email to