From stdcxx-dev-return-5797-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Oct 24 16:13:12 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 86617 invoked from network); 24 Oct 2007 16:13:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 16:13:11 -0000 Received: (qmail 78444 invoked by uid 500); 24 Oct 2007 16:12:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 78429 invoked by uid 500); 24 Oct 2007 16:12:59 -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 78418 invoked by uid 99); 24 Oct 2007 16:12:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 09:12:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 16:13:03 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: svn commit: r587873 - /incubator/stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.mt.cpp Date: Wed, 24 Oct 2007 19:12:19 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE64380121F570@epmsa009.minsk.epam.com> In-Reply-To: <471F5A57.6000500@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r587873 - /incubator/stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.mt.cpp Thread-Index: AcgWTPq04XANHYPGSL+//om+u+cVdAABb/qg References: <20071024122218.1BA001A9832@eris.apache.org> <471F5A57.6000500@roguewave.com> From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com]=20 > Sent: Wednesday, October 24, 2007 5:45 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: svn commit: r587873 -=20 > /incubator/stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.mt.cpp >=20 > faridz@apache.org wrote: > > Author: faridz > > Date: Wed Oct 24 05:22:17 2007 > > New Revision: 587873 > >=20 > > URL: http://svn.apache.org/viewvc?rev=3D587873&view=3Drev > [...] > > @@ -137,10 +138,10 @@ > > =20 > > #endif // _RWSTD_INT64_T > > =20 > > - std::pair<_RWSTD_INT8_T*, std::ptrdiff_t> buf0; > > - std::pair<_RWSTD_INT16_T*, std::ptrdiff_t> buf1; > > - std::pair<_RWSTD_INT32_T*, std::ptrdiff_t> buf2; > > - std::pair buf3; > > + std::pair<_RWSTD_INT8_T*, std::ptrdiff_t> buf0 (0, 0); > > + std::pair<_RWSTD_INT16_T*, std::ptrdiff_t> buf1 (0, 0); > > + std::pair<_RWSTD_INT32_T*, std::ptrdiff_t> buf2 (0, 0); > > + std::pair buf3 (0, 0); >=20 > Why is this necessary? Shouldn't the default ctor zero out=20 > (i.e., default-initialize) its members? > Is this is a workaround for a compiler bug? (If so, which one?) I think it was "just for sure". Reverted back thus: http://svn.apache.org/viewvc?view=3Drev&revision=3D587909 Farid.