Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 99418 invoked from network); 22 Sep 2007 23:31:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2007 23:31:11 -0000 Received: (qmail 11803 invoked by uid 500); 22 Sep 2007 23:31:02 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 11791 invoked by uid 500); 22 Sep 2007 23:31:02 -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 11780 invoked by uid 99); 22 Sep 2007 23:31:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 16:31:02 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Sat, 22 Sep 2007 23:31:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC7F271421B for ; Sat, 22 Sep 2007 16:30:50 -0700 (PDT) Message-ID: <1349706.1190503850833.JavaMail.jira@brutus> Date: Sat, 22 Sep 2007 16:30:50 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-311) std::mask_array copy assignment inaccessible In-Reply-To: <23439841.1165883960967.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-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-311: -------------------------------- Attachment: 26.mask.array.assign.stdcxx-311.cpp Attached a regression test exercising the new implementation of the copy assignment operator. > std::mask_array copy assignment inaccessible > -------------------------------------------- > > Key: STDCXX-311 > URL: https://issues.apache.org/jira/browse/STDCXX-311 > Project: C++ Standard Library > Issue Type: Bug > Components: 26. Numerics > Affects Versions: 4.1.2, 4.1.3 > Environment: All. > Reporter: Martin Sebor > Assignee: Martin Sebor > Fix For: 4.2 > > Attachments: 26.mask.array.assign.stdcxx-311.cpp, stdcxx-311.patch > > > The well-formed program below fails to compile because the mask_array copy assignment operator is declared private: > $ cat z.cpp && make z > #include > int main () > { > std::valarray va (10); > std::mask_array ma (va [std::valarray(1)]); > ma = ma; > } > gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/gcc-4.1.0-11s/include -I/build/sebor/dev/stdlib/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long z.cpp > /build/sebor/dev/stdlib/include/valarray: In function 'int main()': > /build/sebor/dev/stdlib/include/valarray:1079: error: 'std::mask_array<_TypeT>& std::mask_array<_TypeT>::operator=(const std::mask_array<_TypeT>&) [with _TypeT = int]' is private > z.cpp:7: error: within this context > make: *** [z.o] Error 1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.