Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 98823 invoked from network); 23 Oct 2007 18:01:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 18:01:52 -0000 Received: (qmail 51183 invoked by uid 500); 23 Oct 2007 18:01:39 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 51173 invoked by uid 500); 23 Oct 2007 18:01:39 -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 51162 invoked by uid 99); 23 Oct 2007 18:01:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 11:01:39 -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; Tue, 23 Oct 2007 18:01:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 501EB71423B for ; Tue, 23 Oct 2007 11:00:58 -0700 (PDT) Message-ID: <18341502.1193162458325.JavaMail.jira@brutus> Date: Tue, 23 Oct 2007 11:00:58 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-611) vector container does not work with types that implement unary operator& In-Reply-To: <7096100.1193095791593.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-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov updated STDCXX-611: --------------------------------- Attachment: 23.vector.stdcxx-611.cpp The regression test attached. > vector container does not work with types that implement unary operator& > ------------------------------------------------------------------------ > > Key: STDCXX-611 > URL: https://issues.apache.org/jira/browse/STDCXX-611 > Project: C++ Standard Library > Issue Type: Bug > Components: 23. Containers > Affects Versions: 4.2 > Environment: All > Reporter: Travis Vitek > Assignee: Farid Zaripov > Fix For: 4.2.1 > > Attachments: 23.vector.stdcxx-611.cpp > > > This could result in failure to compile or unexpected runtime behavior. Discussion on this issue can be found here http://tinyurl.com/2t7vjp > #include // for vector > struct S > { > void operator& () const {}; > }; > int main () > { > const S s [3]; > // this is just a compile test, it is not intended to run > std::vector v; > v.assign (1, s [0]); > v.assign (s, s+3); > v.at (0); > v.back (); > v.begin (); > v.capacity (); > v.empty (); > v.end (); > v.front (); > v.insert (v.begin (), s [0]); > v.insert (v.begin (), s, s+3); > v.insert (v.begin (), 2, s [0]); > v.erase (v.begin ()); > v.erase (v.begin (), v.end ()); > v.max_size (); > v.pop_back (); > v.push_back (s[0]); > v.rbegin (); > v.rend (); > v.reserve (10); > v.resize (10); > v.size (); > std::vector().swap (v); > return 0; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.