From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 657003858C53 for ; Thu, 14 Apr 2022 11:52:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 657003858C53 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 23EBqN5w029199 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 07:52:27 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 23EBqN5w029199 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id E14C61ED17; Thu, 14 Apr 2022 07:52:22 -0400 (EDT) Message-ID: <1cd33618-ab24-c571-49c5-18257b03ffd9@polymtl.ca> Date: Thu, 14 Apr 2022 07:52:22 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 18/34] Introduce the new DWARF index class Content-Language: en-US To: Enze Li , Tom Tromey Cc: gdb-patches@sourceware.org References: <20220404195335.2111906-1-tom@tromey.com> <20220404195335.2111906-19-tom@tromey.com> From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 14 Apr 2022 11:52:23 +0000 X-Spam-Status: No, score=-3033.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_ASCII_DIVIDERS, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2022 11:52:34 -0000 On 2022-04-14 01:32, Enze Li via Gdb-patches wrote: > Hi Tom, > > From this commit 51f5a4b8e93("Introduce the new DWARF index class"), I > ran into this error: > > =================================================================== > CXX dwarf2/cooked-index.o > In file included from dwarf2/cooked-index.c:21: > ./dwarf2/cooked-index.h:169:12: error: explicitly defaulted move > constructor is implicitly deleted [-Werror,-Wdefaulted-function- > deleted] > explicit cooked_index (cooked_index &&other) = default; > ^ > ./dwarf2/cooked-index.h:247:16: note: move constructor of > 'cooked_index' is implicitly deleted because field 'm_storage' has a > deleted move constructor > auto_obstack m_storage; > ^ > ./../gdbsupport/gdb_obstack.h:128:28: note: 'auto_obstack' has been > explicitly marked deleted here > DISABLE_COPY_AND_ASSIGN (auto_obstack); > ^ > In file included from dwarf2/cooked-index.c:21: > ./dwarf2/cooked-index.h:171:17: error: explicitly defaulted move > assignment operator is implicitly deleted [-Werror,-Wdefaulted- > function-deleted] > cooked_index &operator= (cooked_index &&other) = default; > ^ > ./dwarf2/cooked-index.h:247:16: note: move assignment operator of > 'cooked_index' is implicitly deleted because field 'm_storage' has a > deleted move assignment operator > auto_obstack m_storage; > ^ > ./../gdbsupport/gdb_obstack.h:128:3: note: 'operator=' has been > explicitly marked deleted here > DISABLE_COPY_AND_ASSIGN (auto_obstack); > ^ > ./../include/ansidecl.h:425:8: note: expanded from macro > 'DISABLE_COPY_AND_ASSIGN' > void operator= (const TYPE &) = delete > ^ > 2 errors generated. > make[2]: *** [Makefile:1892: dwarf2/cooked-index.o] Error 1 > =================================================================== > > This happens on Fedora 35 with clang13 and Ubuntu 22.04 with clang14. > > Thanks, > Enze Here's a proposed patch: https://sourceware.org/pipermail/gdb-patches/2022-April/187832.html Simon