From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6271 invoked by alias); 29 Oct 2012 14:54:52 -0000 Received: (qmail 6261 invoked by uid 22791); 29 Oct 2012 14:54:51 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Oct 2012 14:54:35 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9TEsYfk019803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 29 Oct 2012 10:54:34 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q9TEPo41022215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 29 Oct 2012 10:25:50 -0400 From: Tom Tromey To: Jonathan Wakely Cc: gdb@sourceware.org Subject: Re: PR symtab/14441 - rvalue references References: Date: Mon, 29 Oct 2012 14:54:00 -0000 In-Reply-To: (Jonathan Wakely's message of "Sun, 28 Oct 2012 20:34:40 +0000") Message-ID: <87txtdz76a.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00110.txt.bz2 >>>>> "Jonathan" == Jonathan Wakely writes: Jonathan> I'm trying to fix Jonathan> http://sourceware.org/bugzilla/show_bug.cgi?id=14441 by adding Jonathan> support for rvalue references. I plan to contribute this if I Jonathan> get it finished before anyone else fixes it, so I'll get a Jonathan> copyright assignment for GDB filed with the FSF clerk. Very nice, thank you. Jonathan> Before I continue altering every function that checks TYPE_CODE_REF, Jonathan> is my approach the right one? Is adding TYPE_CODE_RVAL_REF and Jonathan> touching dozens of functions the best approach, or should I go back to Jonathan> my first attempt and just fix the few places that need to handle Jonathan> lvalue and rvalue references differently? I would accept either one. Abstractly, I suppose a new type code would be more in keeping with the current design. But I think the other choice would be ok, too, if it is a reasonably accurate model of C++. I don't know enough about rvalue references to say whether this is the case. Tom