Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 77823 invoked from network); 8 Jul 2007 18:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2007 18:31:25 -0000 Received: (qmail 36504 invoked by uid 500); 8 Jul 2007 18:31:28 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 36449 invoked by uid 500); 8 Jul 2007 18:31:28 -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 36437 invoked by uid 99); 8 Jul 2007 18:31:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jul 2007 11:31:28 -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; Sun, 08 Jul 2007 11:31:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6EDD7714163 for ; Sun, 8 Jul 2007 11:31:04 -0700 (PDT) Message-ID: <20533714.1183919464450.JavaMail.jira@brutus> Date: Sun, 8 Jul 2007 11:31:04 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-474) std::mask_array fails to privatize get_array member MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org std::mask_array fails to privatize get_array member --------------------------------------------------- Key: STDCXX-474 URL: https://issues.apache.org/jira/browse/STDCXX-474 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 Priority: Minor Fix For: 4.2 The well-formed program below fails to compile with stdcxx 4.1.3 because the user-defined name get_array is being used by std::mask_array: $ cat t.cpp && make t #define get_array() "error" #include int main () { std::valarray v; } gcc -c -I/home/sebor/stdcxx-4.1.3/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/stdcxx-4.1.3-gcc-4.1.1-11S/include -I/home/sebor/stdcxx-4.1.3/include -I/home/sebor/stdcxx-4.1.3/examples/include -pedantic -nostdinc++ -g -m64 -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align t.cpp /home/sebor/stdcxx-4.1.3/include/valarray:1525: error: expected unqualified-id before string constant /home/sebor/stdcxx-4.1.3/include/valarray: In copy constructor 'std::mask_array<_TypeT>::mask_array(const std::mask_array<_TypeT>&)': /home/sebor/stdcxx-4.1.3/include/valarray:1513: error: expected unqualified-id before string constant /home/sebor/stdcxx-4.1.3/include/valarray: At global scope: /home/sebor/stdcxx-4.1.3/include/valarray:1633: error: expected unqualified-id before string constant /home/sebor/stdcxx-4.1.3/include/valarray: In copy constructor 'std::indirect_array<_TypeT>::indirect_array(const std::indirect_array<_TypeT>&)': /home/sebor/stdcxx-4.1.3/include/valarray:1620: error: expected unqualified-id before string constant make: *** [t.o] Error 1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.