incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-383) [HP aCC 3.76] many remarks #4271-D: type conversion may lose sign from <string>
Date Mon, 02 Apr 2007 22:09:32 GMT
[HP aCC 3.76] many remarks #4271-D: type conversion may lose sign from <string>
-------------------------------------------------------------------------------

                 Key: STDCXX-383
                 URL: https://issues.apache.org/jira/browse/STDCXX-383
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 21. Strings
    Affects Versions: 4.1.3
         Environment: HP aCC 3.76 (beta)
            Reporter: Martin Sebor
         Assigned To: Martin Sebor
            Priority: Minor
             Fix For: 4.2


A couple of remarks from string.cc are making the latest HP aCC builds very noisy:

$ gmake _CXXOPTS="+W2193 +W2261 +W2340 +W2401 +W4235 +W4253 +W4263 +W4264 +W4296 +W4272" t
aCC -c -I/amd/devco/sebor/stdcxx/include/ansi -I/usr/include    -mt -I/amd/devco/sebor/stdcxx/include
-I/build/sebor/aCC-3.76.b6-12D/include -I/amd/devco/sebor/stdcxx/../rwtest/include -I/amd/devco/sebor/stdcxx/tests/include
 -Aa +nostl +W2193 +W2261 +W2340 +W2401 +W4235 +W4253 +W4263 +W4264 +W4296 +W4272 +O2  +DD64
+w +W392 +W655 +W684 +W818 +W819 +W849   t.cpp
"/amd/devco/sebor/stdcxx/include/string.cc", line 561: remark #4271-D: type
          conversion may lose sign
           __s.replace (__first1 - __s._C_make_iter (__s._C_data), 
                        ^
          detected during instantiation of "std::basic_string<_CharT, _Traits,
                    _Allocator> &std::basic_string<_CharT, _Traits,
                    _Allocator>::replace(_Allocator::pointer,
                    _Allocator::pointer, _InputIter, _InputIter, void *) [with
                    _CharT=char, _Traits=std::char_traits<char>,
                    _Allocator=std::allocator<char>, _InputIter=const char *]"
                    at line 634 of "/amd/devco/sebor/stdcxx/include/string"

"/amd/devco/sebor/stdcxx/include/string.cc", line 562: remark #4271-D: type
          conversion may lose sign
                        __last1 - __first1,
                        ^
          detected during instantiation of "std::basic_string<_CharT, _Traits,
                    _Allocator> &std::basic_string<_CharT, _Traits,
                    _Allocator>::replace(_Allocator::pointer,
                    _Allocator::pointer, _InputIter, _InputIter, void *) [with
                    _CharT=char, _Traits=std::char_traits<char>,
                    _Allocator=std::allocator<char>, _InputIter=const char *]"
                    at line 634 of "/amd/devco/sebor/stdcxx/include/string"

aCC t.o -o t -L/build/sebor/aCC-3.76.b6-12D/rwtest -lrwtest12D -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings
  -mt +DD64 -L/build/sebor/aCC-3.76.b6-12D/lib  -Wl,+b/build/sebor/aCC-3.76.b6-12D/lib:/build/sebor/aCC-3.76.b6-12D/rwtest
-lstd12D  -lm

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message