From issues-return-1587-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Wed Apr 23 23:02:57 2008 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 51453 invoked from network); 23 Apr 2008 23:02:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 23:02:57 -0000 Received: (qmail 76117 invoked by uid 500); 23 Apr 2008 23:02:58 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 76092 invoked by uid 500); 23 Apr 2008 23:02:58 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 76081 invoked by uid 99); 23 Apr 2008 23:02:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 16:02:58 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 23:02:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67D67234C0FD for ; Wed, 23 Apr 2008 15:59:21 -0700 (PDT) Message-ID: <818063139.1208991561410.JavaMail.jira@brutus> Date: Wed, 23 Apr 2008 15:59:21 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-771) [HP aCC 6.16] multiple cadvise warnings in money tests In-Reply-To: <401364699.1205773344596.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591856#action_12591856 ] Martin Sebor commented on STDCXX-771: ------------------------------------- After [r651095|http://svn.apache.org/viewvc?rev=651095&view=rev] {{22.locale.money.put}} is free of warnings (just remarks) but {{22.locale.moneypunct.cpp}} still has a couple of warnings. They look bogus to me but I'll need more time to reduce it to a test case for a compiler bug. {noformat} "/amd/devco/sebor/stdcxx-4.2.x/tests/localization/22.locale.moneypunct.cpp", line 274, procedure check_moneypunct: warning #20200-D: Potential null pointer dereference through plconv is detected (null definition:/amd/devco/sebor/stdcxx-4.2.x/tests/localization/22.locale .moneypunct.cpp, line 368) "/amd/devco/sebor/stdcxx-4.2.x/tests/localization/22.locale.moneypunct.cpp", line 427, procedure check_moneypunct: warning #20200-D: Potential null pointer dereference through plconv is detected (null definition:/amd/devco/sebor/stdcxx-4.2.x/tests/localization/22.locale .moneypunct.cpp, line 368) {noformat} > [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.2 > > Original Estimate: 2h > Time Spent: 1h > Remaining Estimate: 1h > > 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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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, _Allocator=std::allocator, _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.