stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-771) [HP aCC 6.16] multiple cadvise warnings in money tests
Date Wed, 23 Apr 2008 22:55:21 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor updated STDCXX-771:
--------------------------------

    Description: 
The [22.locale.moneypunct.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp]
and [22.locale.money.put.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/localization/22.locale.moneyput.cpp]
tests generate a number of HP aCC 6/cadvise warnings, in addition to other diagnostics:

{noformat}
aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA  +O2
 +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.money.put.cpp
"$(TOPDIR)/include/string.cc", line 646: remark #4271-D: type conversion may lose sign
                                       *__first2++);
                                       ^
          detected during:
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::__replace_aux(_Allocator::pointer, _Allocator::pointer, _InputIter,
_InputIter) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 519
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter,
void *) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 616 of "$(TOPDIR)/include/string"
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter)
[with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 191 of "$(TOPDIR)/include/string"
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIter,
_InputIter, const _Allocator &) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>,
_Allocator=std::allocator<wchar_t>, _InputIter=char *]" at line 353 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
            instantiation of "int type_test(int, charT, long double, const char *, char, int,
int, int, const char *, const char *) [with charT=wchar_t]" at line 434 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
            instantiation of "void ldbl_test(charT) [with charT=wchar_t]" at line 852 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"

"$(TOPDIR)/include/string.cc", line 661: remark #4271-D: type conversion may lose sign
                                       *__first2++);
                                       ^
          detected during:
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::__replace_aux(_Allocator::pointer, _Allocator::pointer, _InputIter,
_InputIter) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 519
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter,
void *) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 616 of "$(TOPDIR)/include/string"
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter)
[with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 191 of "$(TOPDIR)/include/string"
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIter,
_InputIter, const _Allocator &) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>,
_Allocator=std::allocator<wchar_t>, _InputIter=char *]" at line 353 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
            instantiation of "int type_test(int, charT, long double, const char *, char, int,
int, int, const char *, const char *) [with charT=wchar_t]" at line 434 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
            instantiation of "void ldbl_test(charT) [with charT=wchar_t]" at line 852 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"

"$(TOPDIR)/include/string.cc", line 550: remark #4271-D: type conversion may lose sign
          traits_type::assign (*__first3, *__first2);
                                          ^
          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=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 616 of "$(TOPDIR)/include/string"
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter)
[with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 191 of "$(TOPDIR)/include/string"
            instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIter,
_InputIter, const _Allocator &) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>,
_Allocator=std::allocator<wchar_t>, _InputIter=char *]" at line 353 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
            instantiation of "int type_test(int, charT, long double, const char *, char, int,
int, int, const char *, const char *) [with charT=wchar_t]" at line 434 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
            instantiation of "void ldbl_test(charT) [with charT=wchar_t]" at line 852 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"

"$(TOPDIR)/tests/localization/22.locale.money.put.cpp", line 837, procedure run_test: warning
#20010-D: Floating-point DIVIDE BY ZERO exception generated

aCC 22.locale.money.put.o -o 22.locale.money.put -L$(BUILDDIR)/rwtest -lrwtest -AA +nostl
-Wl,+s   -mt +DD64 -L$(BUILDDIR)/lib  -Wl,+b$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd  -lm

aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA  +O2
 +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.money.put.mt.cpp
aCC 22.locale.money.put.mt.o -o 22.locale.money.put.mt -L$(BUILDDIR)/rwtest -lrwtest -AA +nostl
-Wl,+s   -mt +DD64 -L$(BUILDDIR)/lib  -Wl,+b$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd  -lm

aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA  +O2
 +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.moneypunct.cpp
"$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp", line 272, procedure check_moneypunct:
warning #20200-D: Potential null pointer dereference through plconv is detected (null definition:$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp,
line 366)

"$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp", line 432, procedure check_moneypunct:
warning #20210-D: Mismatch in allocation and deallocation

"$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp", line 425, procedure check_moneypunct:
warning #20200-D: Potential null pointer dereference through plconv is detected (null definition:$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp,
line 366)

aCC 22.locale.moneypunct.o -o 22.locale.moneypunct -L$(BUILDDIR)/rwtest -lrwtest -AA +nostl
-Wl,+s   -mt +DD64 -L$(BUILDDIR)/lib  -Wl,+b$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd  -lm

aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA  +O2
 +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.moneypunct.mt.cpp
"$(TOPDIR)/tests/localization/22.locale.moneypunct.mt.cpp", line 367: remark #2177-D: variable
"pos" was declared but never referenced
              const std::wstring pos = mp.positive_sign ();
                                 ^

"$(TOPDIR)/tests/localization/22.locale.moneypunct.mt.cpp", line 368: remark #2177-D: variable
"neg" was declared but never referenced
              const std::wstring neg = mp.negative_sign ();
                                 ^
{noformat}

  was:
aCC -c    -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/include -I/amd/devco/scottz/stdcxx/4.2.x/tests/include
 -AA  +O2  +DD64
 +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 +W4229
+W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286   /amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.money.put.cpp

"/amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.money.put.cpp", line 837, procedure
run_test: warning #20010-D: Floating-point DIVIDE BY ZERO exception generated

"/amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.moneypunct.cpp", line 272, procedure
check_moneypunct: warning #20200-D: Potential null pointer dereference through plconv is detected
(null definition:/amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.moneypunct.cpp,
line 366)
"/amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.moneypunct.cpp", line 425, procedure
check_moneypunct: warning #20200-D: Potential null pointer dereference through plconv is detected
(null definition:/amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.moneypunct.cpp,
line 366)

"/amd/devco/scottz/stdcxx/4.2.x/tests/localization/22.locale.moneypunct.cpp", line 432, procedure
check_moneypunct: warning #20210-D: Mismatch in allocation and deallocation


        Summary: [HP aCC 6.16] multiple cadvise warnings in money tests  (was: [HP aCC 6.16]
multiple cadvise warnings in 22.locale.money.put.cpp)

Corrected Summary and Description (the issue conflates problems in two tests).

> [HP aCC 6.16] multiple cadvise warnings in money tests
> ------------------------------------------------------
>
>                 Key: STDCXX-771
>                 URL: https://issues.apache.org/jira/browse/STDCXX-771
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Tests
>    Affects Versions: 4.2.0
>         Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
>            Reporter: Scott (Yu) Zhong
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.1
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The [22.locale.moneypunct.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/localization/22.locale.moneypunct.cpp]
and [22.locale.money.put.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/localization/22.locale.moneyput.cpp]
tests generate a number of HP aCC 6/cadvise warnings, in addition to other diagnostics:
> {noformat}
> aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA
 +O2  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.money.put.cpp
> "$(TOPDIR)/include/string.cc", line 646: remark #4271-D: type conversion may lose sign
>                                        *__first2++);
>                                        ^
>           detected during:
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::__replace_aux(_Allocator::pointer, _Allocator::pointer, _InputIter,
_InputIter) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 519
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter,
void *) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 616 of "$(TOPDIR)/include/string"
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter)
[with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 191 of "$(TOPDIR)/include/string"
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIter,
_InputIter, const _Allocator &) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>,
_Allocator=std::allocator<wchar_t>, _InputIter=char *]" at line 353 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
>             instantiation of "int type_test(int, charT, long double, const char *, char,
int, int, int, const char *, const char *) [with charT=wchar_t]" at line 434 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
>             instantiation of "void ldbl_test(charT) [with charT=wchar_t]" at line 852
of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
> "$(TOPDIR)/include/string.cc", line 661: remark #4271-D: type conversion may lose sign
>                                        *__first2++);
>                                        ^
>           detected during:
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::__replace_aux(_Allocator::pointer, _Allocator::pointer, _InputIter,
_InputIter) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 519
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter,
void *) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 616 of "$(TOPDIR)/include/string"
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter)
[with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 191 of "$(TOPDIR)/include/string"
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIter,
_InputIter, const _Allocator &) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>,
_Allocator=std::allocator<wchar_t>, _InputIter=char *]" at line 353 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
>             instantiation of "int type_test(int, charT, long double, const char *, char,
int, int, int, const char *, const char *) [with charT=wchar_t]" at line 434 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
>             instantiation of "void ldbl_test(charT) [with charT=wchar_t]" at line 852
of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
> "$(TOPDIR)/include/string.cc", line 550: remark #4271-D: type conversion may lose sign
>           traits_type::assign (*__first3, *__first2);
>                                           ^
>           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=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 616 of "$(TOPDIR)/include/string"
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator> &std::basic_string<_CharT,
_Traits, _Allocator>::replace(_Allocator::pointer, _Allocator::pointer, _InputIter, _InputIter)
[with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>, _Allocator=std::allocator<wchar_t>,
_InputIter=char *]" at line 191 of "$(TOPDIR)/include/string"
>             instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIter,
_InputIter, const _Allocator &) [with _CharT=wchar_t, _Traits=std::char_traits<wchar_t>,
_Allocator=std::allocator<wchar_t>, _InputIter=char *]" at line 353 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
>             instantiation of "int type_test(int, charT, long double, const char *, char,
int, int, int, const char *, const char *) [with charT=wchar_t]" at line 434 of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
>             instantiation of "void ldbl_test(charT) [with charT=wchar_t]" at line 852
of "$(TOPDIR)/tests/localization/22.locale.money.put.cpp"
> "$(TOPDIR)/tests/localization/22.locale.money.put.cpp", line 837, procedure run_test:
warning #20010-D: Floating-point DIVIDE BY ZERO exception generated
> aCC 22.locale.money.put.o -o 22.locale.money.put -L$(BUILDDIR)/rwtest -lrwtest -AA +nostl
-Wl,+s   -mt +DD64 -L$(BUILDDIR)/lib  -Wl,+b$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd  -lm

> aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA
 +O2  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.money.put.mt.cpp
> aCC 22.locale.money.put.mt.o -o 22.locale.money.put.mt -L$(BUILDDIR)/rwtest -lrwtest
-AA +nostl -Wl,+s   -mt +DD64 -L$(BUILDDIR)/lib  -Wl,+b$(BUILDDIR)/lib:$(BUILDDIR)/rwtest
-lstd  -lm 
> aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA
 +O2  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.moneypunct.cpp
> "$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp", line 272, procedure check_moneypunct:
warning #20200-D: Potential null pointer dereference through plconv is detected (null definition:$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp,
line 366)
> "$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp", line 432, procedure check_moneypunct:
warning #20210-D: Mismatch in allocation and deallocation
> "$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp", line 425, procedure check_moneypunct:
warning #20200-D: Potential null pointer dereference through plconv is detected (null definition:$(TOPDIR)/tests/localization/22.locale.moneypunct.cpp,
line 366)
> aCC 22.locale.moneypunct.o -o 22.locale.moneypunct -L$(BUILDDIR)/rwtest -lrwtest -AA
+nostl -Wl,+s   -mt +DD64 -L$(BUILDDIR)/lib  -Wl,+b$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd
 -lm 
> aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA
 +O2  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249
+W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/tests/localization/22.locale.moneypunct.mt.cpp
> "$(TOPDIR)/tests/localization/22.locale.moneypunct.mt.cpp", line 367: remark #2177-D:
variable "pos" was declared but never referenced
>               const std::wstring pos = mp.positive_sign ();
>                                  ^
> "$(TOPDIR)/tests/localization/22.locale.moneypunct.mt.cpp", line 368: remark #2177-D:
variable "neg" was declared but never referenced
>               const std::wstring neg = mp.negative_sign ();
>                                  ^
> {noformat}

-- 
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