From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id F373F385697F for ; Tue, 15 Aug 2023 18:13:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F373F385697F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 016191F8C3 for ; Tue, 15 Aug 2023 18:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692123217; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TyyUidihRio33As4sDkb27KbLMGKgVgXP+NHkTNIUTs=; b=NbAjQhOOLEbgBtxSV426WgSGHg4pcDAc+GZkrUl5gARlPvhtkNelbkE49TN6R2VAppXmyN QyN5Gsppq7EXVQ1XCbmnw7fdUyubnTxW5tOvdt6pbWFyuvj91jBkmWpBWW6R/QBHJMyw1R KK23n8V6b+eT/xUyOcXxcXgtIuW3Md0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692123217; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TyyUidihRio33As4sDkb27KbLMGKgVgXP+NHkTNIUTs=; b=PMAtSji8CH0w4BKQo9RbT11PSskR40f1LLKHesEE5jU2eSYmWYoMarRGdEUCWecWph1Nnj 4G7yfXln7DjFI5DQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E3C2A1353E for ; Tue, 15 Aug 2023 18:13:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2HiWNlDA22RuQAAAMHmgww (envelope-from ) for ; Tue, 15 Aug 2023 18:13:36 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH 3/7] [gdb/build, c++20] Fix DISABLE_COPY_AND_ASSIGN use in ui_out_emit_type Date: Tue, 15 Aug 2023 20:13:05 +0200 Message-Id: <20230815181309.8595-4-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230815181309.8595-1-tdevries@suse.de> References: <20230815181309.8595-1-tdevries@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: When building gdb with -std=c++20, I run into: ... include/ansidecl.h:342:9: error: expected unqualified-id before ‘const’ 342 | TYPE (const TYPE&) = delete; \ | ^~~~~ gdb/ui-out.h:412:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 412 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ ... Fix this by using "DISABLE_COPY_AND_ASSIGN (ui_out_emit_type)". Tested on x86_64-linux. --- gdb/ui-out.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/ui-out.h b/gdb/ui-out.h index ba5b1de68ab..07567a1df35 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -409,7 +409,7 @@ class ui_out_emit_type m_uiout->end (Type); } - DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); + DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); private: -- 2.35.3