From patchwork Tue Aug 25 15:26:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 1351129 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=cDfuo2Db; dkim-atps=neutral Received: from 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BbXsl4PVyz9sTN for ; Wed, 26 Aug 2020 01:27:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A9E0C3861857; Tue, 25 Aug 2020 15:27:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9E0C3861857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598369220; bh=wrLg82uERR1QR/2jhFF5hDBZF4iFfCN9p/QT2VMQCns=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=cDfuo2Dbg46t4tAE10R106HQsfBPsXqnpDYTG1QwFvnAF2wXS0ynjjWfGi+s63TF/ Y60Escz0Zn0+gAjH45wWhyfYbXB6/+6VrjPI7c2MCgWS2JNToSc2OKJsCiFqNVjZ9F GGsaEJx1xHfHUNSlXkaPziSaTgk5Hhc7ZwvTdFUU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by sourceware.org (Postfix) with ESMTP id 14A00386183F for ; Tue, 25 Aug 2020 15:26:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 14A00386183F Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-467-JViW-BrbPKi70RIN2S-Klw-1; Tue, 25 Aug 2020 11:26:56 -0400 X-MC-Unique: JViW-BrbPKi70RIN2S-Klw-1 Received: by mail-qk1-f200.google.com with SMTP id t194so5719287qka.6 for ; Tue, 25 Aug 2020 08:26:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wrLg82uERR1QR/2jhFF5hDBZF4iFfCN9p/QT2VMQCns=; b=NWYlxttlYh9MvVMI6kpnLSCIhMhtvXMfP8JC1nkijt65c4XYyJynlDZE6g+lHEySIF 1WspEfWCxYAwvUVhtxC1Paoikh7dvGtjY0gXyWJ61ysSP9OeLYMi4wBLO65973ztO0bI 3UBxN+5bjKSCb0ilhnfvfMq27y1G7NNSQEjom123LMHaFWkg5FXLbHiTkAS4grOv+lez iqiJ6Ps/iq/hJFAWkx/kMtJuBne/y4k5xN6p6MX19lB8yEyycAaJbi6joErwzrNvQNXO lePivYGtImGK31XUM0m9AgUy4noJonOmvsvYv+I1o7advlMIZdcVpb9/nVGUkBGQuWyV 7uwg== X-Gm-Message-State: AOAM531Meaw8gtBJeKEidOCoE/ZSBZCjPxGI3U+uDLWogb6kfk+Tkx5g 8LTD4wyRyXA/D2C6gACI+GOIRWlAWQ4nUgQaKkDybsQGe0F3niie+/swXu/RceTL2wOwoBswWVb Dlm5YjrCll9M3uA+UrA== X-Received: by 2002:a37:4856:: with SMTP id v83mr9986882qka.213.1598369215238; Tue, 25 Aug 2020 08:26:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiSHjpSNVB8Ddx1oc9PTzXRR3RZfx8OQXejfv/hgEZ7rhVhhi4zvIfZxl/B2KHsIEf7+1Wrg== X-Received: by 2002:a37:4856:: with SMTP id v83mr9986866qka.213.1598369215037; Tue, 25 Aug 2020 08:26:55 -0700 (PDT) Received: from localhost.localdomain (ool-457d493a.dyn.optonline.net. [69.125.73.58]) by smtp.gmail.com with ESMTPSA id q126sm11293099qkb.75.2020.08.25.08.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 08:26:53 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] libstdc++: Fix debug-mode build failure in Date: Tue, 25 Aug 2020 11:26:51 -0400 Message-Id: <20200825152651.394274-1-ppalka@redhat.com> X-Mailer: git-send-email 2.28.0.308.g675a4aaf3b MIME-Version: 1.0 X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-16.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Patrick Palka via Gcc-patches From: Patrick Palka Reply-To: Patrick Palka Cc: libstdc++@gcc.gnu.org Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" libstdc++-v3/ChangeLog: * include/std/chrono (year_month_weekday::ok): Fix assert. --- libstdc++-v3/include/std/chrono | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono index bf0d7e7af76..3cc1438a7b6 100644 --- a/libstdc++-v3/include/std/chrono +++ b/libstdc++-v3/include/std/chrono @@ -2613,7 +2613,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION days __d = (_M_wdi.weekday() - chrono::weekday{sys_days{_M_y / _M_m / 1}} + days((_M_wdi.index()-1)*7 + 1)); - __glibcxx_assert(__d >= 1); + __glibcxx_assert(__d.count() >= 1); return __d.count() <= unsigned{(_M_y / _M_m / last).day()}; }