From patchwork Tue Jun 6 08:51:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Matthias_M=C3=A4nnich?= X-Patchwork-Id: 70631 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 587583858288 for ; Tue, 6 Jun 2023 08:52:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 587583858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686041543; bh=lGV6XSWvmBno2hjFEuEtThr9+k3fSTLN2JFgemiNYQ4=; h=Date:In-Reply-To:References:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Help:List-Subscribe:From: Reply-To:From; b=r/3uEMyxSYmiDM+5gNPfMjhSrwfc+IhG7aOA0tFOAfzd3W9aQmjpN1GjW2SP2/y/0 8hMziIsZ1uvq/QfnWkIEsV3WMxgkvBGBEzky6btRPsh1TMhYbftiZCM3RP1L70ng8f SkSv865x00gbCQyClPHPHuT/UTQ/ftP1RAGKhVW4= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by sourceware.org (Postfix) with ESMTPS id 1D9A73858428 for ; Tue, 6 Jun 2023 08:52:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1D9A73858428 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-56991d8e2b0so51505377b3.2 for ; Tue, 06 Jun 2023 01:52:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686041538; x=1688633538; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lGV6XSWvmBno2hjFEuEtThr9+k3fSTLN2JFgemiNYQ4=; b=ZptDwS9ht62Z5dZfSZB6pj7k4FhLE8u4iJYnHmCKC0UOwtGHI1AzfbCfi4fDbv532u x3oohsV8/yxuAkS8RH1BVrS4d5fACfEzRwcHPKS6op/SWudXwqygAiG85niVo1oxJnIq QMPMhNnlqtgaJstQ+3uWPgTkFQGm/D2wgnfPhSSKho4pa5BFB+96lTKBgZmG2K1eTZIO 0JeIWv+WtfAOdooE+wrkeXOw8ASqSaY7az+QmBhEkatpzDE/bw+5nUtlyTiE+p6dufF0 86E69uLaI91WxOz0BMLy6pvGmum31Dr63FIausmTs3gQQcXtiCGyazgYqWrs29Gbuuz1 RQAw== X-Gm-Message-State: AC+VfDwfXSpfw1+FBWPjASVFKOzHOs3v0SLnDXr6TcqsnczSwy03mZeB Xbtkw2ZYBVV81k03+EPYVSGN4+a/OBKcNHym3vm4Out7mAfoeslkErD5DyGlv0iqAeGUIEV5ixX r4oOxV+JjT3zVSAEctxNXmF/vmVYXIRGaKQZNhUR4DMa5+9o4mzimhg8aG/yaNlEt30/i1bg= X-Google-Smtp-Source: ACHHUZ6+ewW0JLi1b3ibMlH4NTx72oXKXTfc01UwBFjav/oDR81zuG2JJLnFhv2+y3q+0FE2LwMFJH86nZx/Qw== X-Received: from lux.lon.corp.google.com ([2a00:79e0:d:209:65d7:da0e:bd15:3540]) (user=maennich job=sendgmr) by 2002:a81:8d0d:0:b0:569:c5f8:918d with SMTP id d13-20020a818d0d000000b00569c5f8918dmr657861ywg.3.1686041538722; Tue, 06 Jun 2023 01:52:18 -0700 (PDT) Date: Tue, 6 Jun 2023 09:51:34 +0100 In-Reply-To: <20230606085132.1894137-3-maennich@google.com> Message-Id: <20230606085132.1894137-4-maennich@google.com> Mime-Version: 1.0 References: <20230606085132.1894137-3-maennich@google.com> X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog Subject: [PATCH 2/2] symtab reader: fix symtab iterator to support C++20 To: libabigail@sourceware.org Cc: dodji@seketeli.org, gprocida@google.com, kernel-team@android.com, maennich@google.com X-Spam-Status: No, score=-21.7 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Matthias_M=C3=A4nnich_via_Libabigail?= From: =?utf-8?q?Matthias_M=C3=A4nnich?= Reply-To: =?utf-8?q?Matthias_M=C3=A4nnich?= Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" From: Matthias Maennich Inheriting from std::vector::iterator causes the type to advertise itself as a contiguous iterator. This causes a compilation error in newer versions of libc++ that try to use contiguous-iterator-specific optimizations in those situations. Fixed thus by explicitly specifying the interator_concept tag. * abg-symtab-reader.h (symtab_iterator): Specify iterator_concept as forward_iterator to support C++20 compilation. Signed-off-by: Matthias Maennich Reviewed-by: Giuliano Procida --- src/abg-symtab-reader.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/abg-symtab-reader.h b/src/abg-symtab-reader.h index 7477cca5a6f0..888a56822224 100644 --- a/src/abg-symtab-reader.h +++ b/src/abg-symtab-reader.h @@ -115,6 +115,7 @@ public: using pointer = base_iterator::pointer; using difference_type = base_iterator::difference_type; using iterator_category = std::forward_iterator_tag; + using iterator_concept = std::forward_iterator_tag; /// Construct the iterator based on a pair of underlying iterators and a /// symtab_filter object. Immediately fast forward to the next element that