Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 10576 invoked from network); 15 Apr 2008 20:53:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2008 20:53:24 -0000 Received: (qmail 86664 invoked by uid 500); 15 Apr 2008 20:53:25 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 86640 invoked by uid 500); 15 Apr 2008 20:53:25 -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 86631 invoked by uid 99); 15 Apr 2008 20:53:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 13:53:25 -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; Tue, 15 Apr 2008 20:52:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 909EC234C0D0 for ; Tue, 15 Apr 2008 13:50:21 -0700 (PDT) Message-ID: <1301378522.1208292621590.JavaMail.jira@brutus> Date: Tue, 15 Apr 2008 13:50:21 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-862) [Sun C++ 5.9] 0.char test failed due to different binary representation of "long double ld1 = 0" and "long double ld2 = 0." In-Reply-To: <1450284624.1208169666123.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-862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589228#action_12589228 ] Martin Sebor commented on STDCXX-862: ------------------------------------- FWIW, I can only reproduce the abort with my installation of Sun C++ when I enable optimization: {noformat} $ cat /etc/redhat-release && cat /proc/cpuinfo | grep -m1 "model name" \ && cat u.cpp && CC -V u.cpp && ./a.out && echo PASS \ && CC -V -O u.cpp && ./a.out && echo PASS Red Hat Enterprise Linux AS release 4 (Nahant Update 4) model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz #include #include int main () { long double ld1 = 0; long double ld2 = 0.; assert (ld1 == ld2); assert (0 == memcmp (&ld1, &ld2, sizeof (ld1))); return 0; } CC: Sun C++ 5.9 Linux_i386 2007/05/03 GNU ld version 051128 20051128 Supported emulations: elf_x86_64 elf_i386 i386linux ccfe: Sun C++ 5.9 Linux_i386 2007/05/03 PASS CC: Sun C++ 5.9 Linux_i386 2007/05/03 ir2hf: Sun Compiler Common 12 Linux_i386 2007/05/03 ube: Sun Compiler Common 12 Linux_i386 2007/05/03 GNU ld version 051128 20051128 Supported emulations: elf_x86_64 elf_i386 i386linux /amd/packages/mdx/redhat/compilers/sun/5.9/prod/bin/c++filt: Sun C++ 5.9 Linux_i386 2007/05/03 ccfe: Sun C++ 5.9 Linux_i386 2007/05/03 iropt: Sun Compiler Common 12 Linux_i386 2007/05/03 a.out: u.cpp:10: Assertion `0 == memcmp (&ld1, &ld2, sizeof (ld1))' failed. Aborted {noformat} > [Sun C++ 5.9] 0.char test failed due to different binary representation of "long double ld1 = 0" and "long double ld2 = 0." > --------------------------------------------------------------------------------------------------------------------------- > > Key: STDCXX-862 > URL: https://issues.apache.org/jira/browse/STDCXX-862 > Project: C++ Standard Library > Issue Type: Bug > Components: Tests > Affects Versions: 4.2.0 > Environment: Linux > Reporter: Farid Zaripov > Assignee: Farid Zaripov > Priority: Trivial > Fix For: 4.2.1 > > Original Estimate: 1h > Time Spent: 1h > Remaining Estimate: 0h > > {noformat} > $ cat test.cpp && CC test.cpp -o test && ./test > #include > #include > int main () > { > long double ld1 = 0; > long double ld2 = 0.; > > assert (ld1 == ld2); > assert (0 == memcmp (&ld1, &ld2, sizeof (ld1))); > > return 0; > } > test: test.cpp:10: Assertion `0 == memcmp (&ld1, &ld2, sizeof (ld1))' failed. > Aborted > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.