Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 7334 invoked from network); 5 Jun 2006 19:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 19:45:54 -0000 Received: (qmail 97367 invoked by uid 500); 5 Jun 2006 19:45:54 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 97306 invoked by uid 500); 5 Jun 2006 19:45:54 -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 97283 invoked by uid 99); 5 Jun 2006 19:45:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 12:45:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 12:45:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 97B817142E7 for ; Mon, 5 Jun 2006 19:44:39 +0000 (GMT) Message-ID: <6637904.1149536679618.JavaMail.jira@brutus> Date: Mon, 5 Jun 2006 19:44:39 +0000 (GMT+00:00) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-172) error on std::auto_ptr::operator=() In-Reply-To: <12833285.1145390600198.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-172?page=all ] Martin Sebor updated STDCXX-172: -------------------------------- Fix Version: 4.2 (was: 4.1.4) > error on std::auto_ptr::operator=() > ----------------------------------------------- > > Key: STDCXX-172 > URL: http://issues.apache.org/jira/browse/STDCXX-172 > Project: C++ Standard Library > Type: Bug > Components: 20. General Utilities > Versions: 4.1.3 > Environment: all > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Trivial > Fix For: 4.2 > > The program below fails to compile. There is no restriction on the template argument to the assignment operator (other than 17.4.3.6, p2, bullet 5) so the code should compile at least as a matter of QoI. > $ cat t.cpp && gmake t > #include > void foo () > { > std::auto_ptr ap; > ap = ap; > ap.operator=(ap); > } > int main () { } > CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/build/sebor/sunpro-5.8-15S/include -I/amd/devco/sebor/dev/stdlib/include -I/amd/devco/sebor/dev/stdlib/../rwtest -I/amd/devco/sebor/dev/stdlib/../rwtest/include -I/amd/devco/sebor/dev/stdlib/tests/include -library=%none -g -xarch=v9 +w t.cpp > "/amd/devco/sebor/dev/stdlib/include/rw/_autoptr.h", line 136: Error: Cannot declare a reference to void. > "t.cpp", line 5: Where: While specializing "std::auto_ptr". > "t.cpp", line 5: Where: Specialized in non-template code. > 1 Error(s) detected. > gmake: *** [t.o] Error 1 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira