Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 40725 invoked from network); 28 Mar 2008 23:56:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2008 23:56:42 -0000 Received: (qmail 29832 invoked by uid 500); 28 Mar 2008 23:56:41 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 29810 invoked by uid 500); 28 Mar 2008 23:56:41 -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 29801 invoked by uid 99); 28 Mar 2008 23:56:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2008 16:56:41 -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; Fri, 28 Mar 2008 23:55:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A4CB234C0AC for ; Fri, 28 Mar 2008 16:54:24 -0700 (PDT) Message-ID: <1162330396.1206748464434.JavaMail.jira@brutus> Date: Fri, 28 Mar 2008 16:54:24 -0700 (PDT) From: "Eric Lemings (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Issue Comment Edited: (STDCXX-708) [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions In-Reply-To: <16464307.1201216121637.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-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583242#action_12583242 ] elemings edited comment on STDCXX-708 at 3/28/08 4:53 PM: -------------------------------------------------------------- I think the expected values (such as the following conditional compilation directive) need to be updated for this platform: file stdcxx/trunk/tests/support/18.numeric.special.float.cpp: {code} 373 _RWSTD_SPECIALIZED_CLASS 374 struct limits_values 375 { ... 452 static std::float_denorm_style has_denorm () { 453 454 #if defined (_AIX) 455 return std::denorm_present; 456 #elif defined (__hpux) 457 return std::denorm_indeterminate; 458 #elif defined (__osf__) 459 return std::denorm_present; 460 #else 461 return std::denorm_indeterminate; 462 #endif 463 } {code} According to the INFINITY.cpp config test, `std::numeric_limits::has_denorm' should have the value `denorm_present' on this platform. was (Author: elemings): I think the expected values (such as the following conditional compilation directive) need to be updated for this platform: file stdcxx/trunk/tests/support/18.numeric.special.float.cpp: 373 _RWSTD_SPECIALIZED_CLASS 374 struct limits_values 375 { ... 452 static std::float_denorm_style has_denorm () { 453 454 #if defined (_AIX) 455 return std::denorm_present; 456 #elif defined (__hpux) 457 return std::denorm_indeterminate; 458 #elif defined (__osf__) 459 return std::denorm_present; 460 #else 461 return std::denorm_indeterminate; 462 #endif 463 } According to the INFINITY.cpp config test, `std::numeric_limits::has_denorm' should have the value `denorm_present' on this platform. > [HP aCC 6.15/HP-UX/IPF] 18.numeric.special.float fails assertions > ----------------------------------------------------------------- > > Key: STDCXX-708 > URL: https://issues.apache.org/jira/browse/STDCXX-708 > Project: C++ Standard Library > Issue Type: Bug > Components: Tests > Affects Versions: trunk > Environment: {noformat} > $ uname -srm && aCC -V > HP-UX B.11.31 ia64 > aCC: HP C/aC++ B3910B A.06.15 [May 16 2007] > {noformat} > Reporter: Martin Sebor > Assignee: Eric Lemings > Fix For: 4.2.1 > > Original Estimate: 4h > Time Spent: 2h > Remaining Estimate: 2h > > When compiled with HP aCC 6 on HP-UX running on IPF hardware the newly added test [18.numeric.special.float.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/support/18.numeric.special.float.cpp] fails a bunch of assertions. > One of them look like a configuration problem in the library (has_denorm) while others (min(), max(), and epsilon()) like problems in the test > {noformat} > $ nice gmake 18.numeric.special.float -r && ./18.numeric.special.float > aCC -c -D_RWSTDDEBUG -mt -I/amd/devco/sebor/stdcxx/include \ > -I/build/sebor/stdcxx-aCC-6.15-15D/include -I/amd/devco/sebor/stdcxx/tests/include \ > -AA -g +d +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/sebor/stdcxx/tests/support/18.numeric.special.float.cpp > "/amd/devco/sebor/stdcxx/include/limits", line 449: warning #4070-D: floating > point underflow exception > _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) > ^ > aCC 18.numeric.special.float.o -o 18.numeric.special.float \ > -L/build/sebor/stdcxx-aCC-6.15-15D/rwtest -lrwtest15D -AA +nostl -Wl,+s -mt +DD64 \ > -L/build/sebor/stdcxx-aCC-6.15-15D/lib \ > -Wl,+b/build/sebor/stdcxx-aCC-6.15-15D/lib:/build/sebor/stdcxx-aCC-6.15-15D/rwtest \ > -lstd15D -lm > rm 18.numeric.special.float.o > # INFO (S1) (10 lines): > # TEXT: > # COMPILER: HP aCC, __HP_aCC = 61500, __EDG_VERSION__ = 308 > # ENVIRONMENT: ia64 running hp-ux > # FILE: 18.numeric.special.float.cpp > # COMPILED: Jan 24 2008, 17:28:57 > # COMMENT: floating specializations > ############################################################ > # CLAUSE: numeric.special > # ASSERTION (S7) (4 lines): > # TEXT: numeric_limits::has_denorm == -1, got 1 > # CLAUSE: numeric.special > # LINE: 1366 > # ASSERTION (S7) (4 lines): > # TEXT: numeric_limits::has_denorm == -1, got 1 > # CLAUSE: numeric.special > # LINE: 1366 > # ASSERTION (S7) (4 lines): > # TEXT: numeric_limits::min() == 3.3621e-4932, got 3.3621e-4932 > # CLAUSE: numeric.special > # LINE: 1253 > # ASSERTION (S7) (4 lines): > # TEXT: numeric_limits::max() == 1.18973e+4932, got 1.18973e+4932 > # CLAUSE: numeric.special > # LINE: 1254 > # ASSERTION (S7) (4 lines): > # TEXT: numeric_limits::epsilon() == 1.92593e-34, got 1.0842e-19 > # CLAUSE: numeric.special > # LINE: 1262 > # ASSERTION (S7) (4 lines): > # TEXT: numeric_limits::has_denorm == -1, got 1 > # CLAUSE: numeric.special > # LINE: 1366 > # +-----------------------+----------+----------+----------+ > # | DIAGNOSTIC | ACTIVE | TOTAL | INACTIVE | > # +-----------------------+----------+----------+----------+ > # | (S1) INFO | 1 | 1 | 0% | > # | (S5) WARNING | 0 | 3 | 100% | > # | (S7) ASSERTION | 6 | 134 | 95% | > # +-----------------------+----------+----------+----------+ > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.