From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id M4WxIa+wz2rz5wkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 12:41:19 -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=AWbHzAEh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 75E2A1E04E; Wed, 14 Oct 2026 12:41:19 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (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 BD3D61E04E for ; Wed, 14 Oct 2026 12:41:18 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9F0334BA23D1 for ; Wed, 14 Oct 2026 16:41:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F0334BA23D1 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=AWbHzAEh Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id B94554BA540B for ; Wed, 14 Oct 2026 16:40:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B94554BA540B 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 B94554BA540B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791996050; cv=none; b=lgQm2YhYeHCuLuNIT4pPY71nGkZ3L2U3fzyRykN5pvvEIo45FOeVy9nFaaHbDsKPa7qw3gN7fCkpQDkxIHwvhpVnY6moxxKub3wvzlCohQE9sfR8Jj5osOjqnE4XDrKT+ZaWnY7I8Ca47TWWdRAhUT3Doj6W+PanrPNOQQ3cSIg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791996050; c=relaxed/simple; bh=gYY5PfZWSEE7ciUDwKKWpW4GbosdnleL7EX10mdnBRI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=diFOYjNDMvE+Sry1wiF4shXDuNm4Mq7iS4/AnagNTrYXAq35BqbADE4A+FqWRFhRkSOvpEHMXgvUAJdL4jx0GLyPdnSRUEqxHNLSu/gy/HsfYljDnQSmgiwB0si9RssYR0FftuYllX7I2xz4tuZV+p6fngXTUqDPVJsyqhAtWt8= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=AWbHzAEh reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B94554BA540B Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id Gz7HxMVNHc3XsH225xzjNJ; Wed, 14 Oct 2026 16:40:49 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id H225xp2w1bhSyH225xepqk; Wed, 14 Oct 2026 16:40:49 +0000 X-Authority-Analysis: v=2.4 cv=IJECChvG c=1 sm=1 tr=0 ts=6acfb091 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=660iZSQnnn4A:10 a=ItBw4LHWJt0A:10 a=zd2uoN0lAAAA:8 a=O9rWi4jBBkADY3x4GjcA:9 a=DCx65vhANUyCzuf5D8fC: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-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nligq1z/VaGG5tPL+55k6+OBQ0Q7mFw2A4H2SQKvN9Q=; b=AWbHzAEhOnizpMHQM/EvW47qy9 ktr1rfEEtLfyYHZ3jk/kF4flkc6XLyMRsLnM45kIw1DwFg/DN728vUvxzEwGe28acfHouXhcLwwGo IL8Aj21SwyKvKHDc8smKW1zQ8; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:50134 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xH224-00000004KXc-3oXe; Wed, 14 Oct 2026 10:40:48 -0600 From: Tom Tromey To: "Sing, Victoria" Cc: "gdb-patches@sourceware.org" Subject: Re: [PATCH] gdb: don't let decltype(nullptr) hide the decltype keyword In-Reply-To: (Victoria Sing's message of "Tue, 6 Oct 2026 17:16:55 +0000") References: X-Attribution: Tom Date: Wed, 14 Oct 2026 10:40:47 -0600 Message-ID: <87pkxc2q28.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.129 X-Source-L: No X-Exim-ID: 1xH224-00000004KXc-3oXe X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net (bapiya) [97.122.110.129]:50134 X-Source-Auth: tom+tromey.com X-Email-Count: 9 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJVIp1pJ4nj9B3I/BmEQPZDyaIeW9XR4vs7Cr/2tyUzJu7ZMaa338VVyHvS3zFAF90LSCHI9wKG+zDmH5OJBto/JOM//BoCqtDQliWn92Y7nJ6BrXlzj DYKxlQTwkgS+L1fCnydvn/CVycwivAX+T134J9ByDebAu3LZxljJtVrfHCeoVOtfCjFFRP6dbglAjBjQnBZjId45N3EdJFiYXyo= 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 >>>>> Sing, Victoria writes: > The attached patch fixes GDB failing to parse expressions that use > "decltype" when the program contains a type named "decltype(nullptr)", > which is the name compilers use for std::nullptr_t in debug > information. > This happens because "decltype" was a normal name in C++ before C++11. > To support older code, GDB first checks whether the program has > something named "decltype". If it does, GDB uses that thing instead of > treating "decltype" as a keyword. > That check is too loose. In C++, GDB ignores anything in parentheses at > the end of a name, so that "foo" finds a function "foo(int)". Because > of this, the check also finds the type "decltype(nullptr)", and GDB > wrongly stops treating "decltype" as a keyword. I wonder if we even want to have a symbol named 'decltype(nullptr)' at all? That is, I wonder if this oddity should be filtered out in the DWARF reader. Tom