From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EX0PETr2cWa/ZD0AWB0awg (envelope-from ) for ; Tue, 18 Jun 2024 17:03:54 -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=UlboV2Z7; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3926D1E0C1; Tue, 18 Jun 2024 17:03:54 -0400 (EDT) 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 E340C1E092 for ; Tue, 18 Jun 2024 17:03:51 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8C3813883010 for ; Tue, 18 Jun 2024 21:03:51 +0000 (GMT) Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id CCB643882ACB for ; Tue, 18 Jun 2024 21:03:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CCB643882ACB 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 CCB643882ACB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718744612; cv=none; b=EBodVKuLXJsE6m2a/XLkWXD99GjvpPrwshfYzLbdHjSiAaqB2p/AbL3MRONYI086JK3SMjeSplWfMgZoSM2ibnI9tcdLt0LsPRCO538nwKB8P2H9tmy+Bi2cPfhIDUwcnUmIDQfLalw1ZVfOm6PjtDDy6gDNjIFxPTO/aSMZJgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718744612; c=relaxed/simple; bh=xIhHFCavkH4X504ip8ziOxOQgeSeYDeLI4A1csLoNqc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=sJ6s7GEk+HcIbdLVoi3oF8JLSbh5ImK/Ars4KEbqmf9Zf6rAy4ygZV9REm2ipROXmNmMGo0BwFABFIJMJ2kEkwUPLS3cat5PxKcb9WNetXejVzTK8geGSJ3gzKiqSRhrqArEk9K6ooGf+hARodM3OAHnZYqk7uidwou0SBm9W/I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5008a.ext.cloudfilter.net ([10.0.29.246]) by cmsmtp with ESMTPS id JfqQspAFkSqshJfzGszbqX; Tue, 18 Jun 2024 21:03:30 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id JfzFsZFnvL6tbJfzGs2fas; Tue, 18 Jun 2024 21:03:30 +0000 X-Authority-Analysis: v=2.4 cv=V5170/ni c=1 sm=1 tr=0 ts=6671f622 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=T1WGqf2p2xoA:10 a=Qbun_eYptAEA:10 a=zd2uoN0lAAAA:8 a=VXWBJXdPPN8ei-u_xvUA:9 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=SHYzsxlEF3U7l5FyQ9jlm1RcrJxdw41VJolsHZlXM5Q=; b=UlboV2Z76FXNZXCQT9DP5pNRsU DvaCMDT/+b9rRSIXilnRmYgJgSONnhLnKcZCyYUUMc6NZO6LHuCCnt60CoeVmR2RSFC2kPatM/v3U uV0OtTBvAdijczQoAW/0sQMqy; Received: from 97-122-118-144.hlrn.qwest.net ([97.122.118.144]:60788 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sJfzF-0033oP-17; Tue, 18 Jun 2024 15:03:29 -0600 From: Tom Tromey To: Lancelot SIX Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/python/python-internal.h: avoid uninitialized constexpr In-Reply-To: <72ea54a7-b6de-42b3-8889-f8921c0d2074@amd.com> (Lancelot SIX's message of "Tue, 18 Jun 2024 22:01:42 +0100") References: <20240618090952.537478-1-lancelot.six@amd.com> <8734pacjju.fsf@tromey.com> <2317caf4-6fdb-46d1-b2aa-caffed3faffe@amd.com> <87wmmmxcat.fsf@tromey.com> <72ea54a7-b6de-42b3-8889-f8921c0d2074@amd.com> X-Attribution: Tom Date: Tue, 18 Jun 2024 15:03:28 -0600 Message-ID: <87sexax8tb.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.118.144 X-Source-L: No X-Exim-ID: 1sJfzF-0033oP-17 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-118-144.hlrn.qwest.net (prentzel) [97.122.118.144]:60788 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: MS4xfF8rOBS7O2ak0qN89PcBu7oAfT8qIS8LLJoUeiZxUWVTcJ2lGUTzj6XJd1ZYa6nqrfKF/MvdSdQm15NDQVsVDxi8Zp3rcc5iytPnt+tW4dmkjVZbIvvR zEp9VEoX2zL7pzLxD0Q8QmooUv+R2CgcQwP6q9uepHaimS6yS1+MJVbZgthZDBYa9AN8nABOVJlJBXdvyJ4xqohw0r45m4z6Rqw= X-Spam-Status: No, score=-3013.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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 >>>>> "Lancelot" == Lancelot SIX writes: >> I think s/constexpr/extern probably works. Lancelot> G++ complains that "explicit template specialization cannot have a Lancelot> storage class": I meant just the constexpr on the "base case", not: Lancelot> 154 | extern char gdbpy_method_format = GDB_PY_LL_ARG[0]; ... this one -- these have to be constexpr. Tom