Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 58007 invoked from network); 19 Jan 2007 18:41:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2007 18:41:51 -0000 Received: (qmail 69220 invoked by uid 500); 19 Jan 2007 18:41:57 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 69204 invoked by uid 500); 19 Jan 2007 18:41:57 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 69177 invoked by uid 99); 19 Jan 2007 18:41:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 10:41:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 10:41:50 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 230977142BA for ; Fri, 19 Jan 2007 10:41:30 -0800 (PST) Message-ID: <18306193.1169232090139.JavaMail.jira@brutus> Date: Fri, 19 Jan 2007 10:41:30 -0800 (PST) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Assigned: (STDCXX-324) std::div_t, std::ldiv_t missing members quot and rem In-Reply-To: <20791900.1169232090078.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-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor reassigned STDCXX-324: ----------------------------------- Assignee: Martin Sebor > std::div_t, std::ldiv_t missing members quot and rem > ---------------------------------------------------- > > Key: STDCXX-324 > URL: https://issues.apache.org/jira/browse/STDCXX-324 > Project: C++ Standard Library > Issue Type: Bug > Components: 26. Numerics > Affects Versions: 4.1.3, 4.1.2 > Environment: EDG eccp/Solaris > Reporter: Martin Sebor > Assigned To: Martin Sebor > Fix For: 4.2 > > > The C standard(7.20.6.2, p3) requires the structs div_t and ldiv_t to contain the members quot and rem. We seem to be missing them: > $ cat t.cpp && make t > #include > int main () > { > const std::div_t x = { }; > const std::ldiv_t y = { }; > return x.quot + x.rem + y.quot + y.rem; > } > eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp > "t.cpp", line 8: error #135: class "std::div_t" has no member "quot" > return x.quot + x.rem + y.quot + y.rem; > ^ > "t.cpp", line 8: error #135: class "std::div_t" has no member "rem" > return x.quot + x.rem + y.quot + y.rem; > ^ > "t.cpp", line 8: error #135: class "std::ldiv_t" has no member "quot" > return x.quot + x.rem + y.quot + y.rem; > ^ > "t.cpp", line 8: error #135: class "std::ldiv_t" has no member "rem" > return x.quot + x.rem + y.quot + y.rem; > ^ > 4 errors detected in the compilation of "t.cpp". > make: *** [t.o] Error 2 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira