From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 61738383980B for ; Wed, 16 Jun 2021 13:40:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 61738383980B Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-44-yfrT-phpNoaA2QT38wKiBw-1; Wed, 16 Jun 2021 09:40:49 -0400 X-MC-Unique: yfrT-phpNoaA2QT38wKiBw-1 Received: by mail-wm1-f72.google.com with SMTP id j6-20020a05600c1906b029019e9c982271so1411473wmq.0 for ; Wed, 16 Jun 2021 06:40:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hl9/tUE4aFNKSGCZqUl6SG9NrD4YYoPAgqOCoNLX8Tk=; b=lXHwtFD+ZwvEt7FOC8QqFdDnjM/zqkCi/sSpewiP1gU5bFaHZDkG0jHAdE5jGIrvxe wGAmjGKZmyu81YuCljMcerLSx2/ygpn07BedRvzyvOAX9zh4Q99ldtzuqzbLiKwGrynd rfUlJv2nbWxwkr08fVFqoZb/ltG8iT/qFCVm/BlFY1Ci2EI5OKC5up0YKXhMcMxbvXpk jtxelxBtZufvb1GhHirvnoogQdf2MwH2Vc76A3U46imk5TLf+xOcpPYm2E4F/xcD9r7d s7MkUgZsfjIL2x4lDQE+3qOtF8DPsmI74TozMXOj0G87eRjCoDWIGhvtRFaJmyWBJezG 6IoA== X-Gm-Message-State: AOAM533xMwl3L8CVuZXkg7NWPIVfc35p0aKJ2jNxwP6tCt5Zvdm/vYyc tdUGfZZbmNhq4DsTY0Xy91ryFdpNrIzBtGr7H1GpPaEff558i1tYUstBqVkfSUbT358BmOZZq7P zrndyWxa+uLWyncCDoaD4auK3WMCPUEc= X-Received: by 2002:a5d:5049:: with SMTP id h9mr5535466wrt.221.1623850848149; Wed, 16 Jun 2021 06:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3tTI3Z+Tj3mR1+REcnYSdVLblNF6xXxpnjwNVvrxiWUH/ySzwpwXPyQnV7o+kJDt1HDUtykVzbGjYwsJwKv0= X-Received: by 2002:a5d:5049:: with SMTP id h9mr5535459wrt.221.1623850847994; Wed, 16 Jun 2021 06:40:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Wed, 16 Jun 2021 14:40:37 +0100 Message-ID: Subject: Re: [committed] libstdc++: Add noexcept specifiers to some range adaptors To: Jonathan Wakely Cc: "libstdc++" , gcc Patches X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2021 13:40:53 -0000 On Tue, 15 Jun 2021 at 19:32, Jonathan Wakely wrote: > > Signed-off-by: Jonathan Wakely > > libstdc++-v3/ChangeLog: > > * include/bits/ranges_util.h (view_interface): Add noexcept to > empty, operator bool, data and size members. > (subrange): Add noexcept to constructors. > * include/std/ranges (single_view, ref_view): Add noexcept to > constructors. > (views::single, views::all): Add noexcept. > * testsuite/std/ranges/adaptors/all.cc: Check noexcept. > * testsuite/std/ranges/single_view.cc: Likewise. > > Tested powerpc64le-linux. Committed to trunk. This one also breaks modules, but seems to be a bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101095 If the compiler bug isn't fixed quickly I'll probably have to remove the new noexcept-specifiers from the subrange constructors.