From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id bzISN6Cht2gLvhIAWB0awg (envelope-from ) for ; Tue, 02 Sep 2025 22:02:08 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=qYFGSv1A; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id CFFFC1E057; Tue, 02 Sep 2025 22:02:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6376B1E057 for ; Tue, 02 Sep 2025 22:02:08 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D1F283858CB6 for ; Wed, 3 Sep 2025 02:02:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1F283858CB6 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=qYFGSv1A Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id 73CF73858D1E for ; Wed, 3 Sep 2025 02:01:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73CF73858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 73CF73858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756864891; cv=none; b=sTHtzToxHOtfXj3Cd9Fqvxw4Tv7HRDuUugnf4DBtDZ+wa95xryXsagtbBLq8FTgoX9uynbK1bB0MSPFsz2YjSdV3qZkxal62co4hE0+4cXwpPRYA3rX+6pLtYR9Q370itgfqX5gCNZHAgiqzwr42RkDNtKVdm9DrqoygCiugoO0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756864891; c=relaxed/simple; bh=VOo34KAJmSscn8vgDRedH7GFNv8iy/i1Z89RaCqj+1E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=iOMo2q93PfthB+7OPlZ2yxpBY9TD56gbUfaX4VzfwFGWQMjosHJEc8/Crqw+r1Td9q3LUtoTUaSn49De7fS54mH1YnHB/L3txDCOZcHYx+5kQhSKlX1gU1YFL+JB2CLxzenN5P/sYBbOztda4si8YbVBYQ9AOVluWoWkxxQiHfA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73CF73858D1E Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id taRWuAJ55aPqLtcoUug7qC; Wed, 03 Sep 2025 02:01:30 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id tcoTunIkZHRj8tcoTuGLYs; Wed, 03 Sep 2025 02:01:30 +0000 X-Authority-Analysis: v=2.4 cv=Vq8jA/2n c=1 sm=1 tr=0 ts=68b7a17a a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=yJojWOMRYYMA:10 a=ItBw4LHWJt0A:10 a=6CIiAuXEHMnx-UjOndIA:9 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=sQm087YLTSaE51bSnWlTJA+t1sjdDhB8yB5q+H5KwHI=; b=qYFGSv1A/ewI2JRIIe/91qKSDg Y7kyhZygapWsUQvuO3XTtw1La7Cmt3djntQfDVBtElSpwgixQra5GVX6XvwXGs1zvk69wjTr7HF1s kFFGJsegCC/3txKpKOJpnhuRM; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:38228 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1utcoT-00000000ZSu-0ntU; Tue, 02 Sep 2025 20:01:29 -0600 From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH 2/3] gdbsupport: make filtered_iterator work with pointers In-Reply-To: (Simon Marchi's message of "Fri, 29 Aug 2025 12:00:56 -0400") References: <20250828151100.84594-1-simon.marchi@efficios.com> <20250828151100.84594-2-simon.marchi@efficios.com> <875xe6utyx.fsf@tromey.com> X-Attribution: Tom Date: Tue, 02 Sep 2025 20:01:28 -0600 Message-ID: <87y0qwi9af.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.110.68 X-Source-L: No X-Exim-ID: 1utcoT-00000000ZSu-0ntU X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (prentzel) [97.122.110.68]:38228 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKL71DGbLspJRHUzq9/NifNWGWoXQ6/vPaCZ6CoOpzX7j8IjzmjOFx4NNXyWSpEx6aE6nqeT7KzqVFSr/XzR7H9TZQIlXffQ74Wg4jGAW0fGvuqg9foL oJ1xW1MfUOaG2OEZzZWPjBLiEhaqGEGZZ23L0Eixn8MSX3atfspuN2bT22LYsxwKeIarklWO+h8s/8i9MBUatoTq9Sq1HY7iIAY= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >> It seems to me that the presence of this constructor means that some >> existing code could change meaning. It's not really likely but I wonder >> how we would know. Simon> Yeah, you're right. For the meaning of a call site to change, that call Simon> site would need: ... Simon> I don't know how to know for sure whether this happens. I thought of one way, which is to remove the template constructor, recompile, and count the errors. Then, add the two-argument constructor and do it again. If the second compilation has fewer errors, then there's some spot that calls the new constructor. I don't think you should actually do this though, I'm not planning to either. Tom