From patchwork Thu Mar 12 00:30:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 1253319 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=Sze/lp97; 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 48d8rX51jDz9sSJ for ; Thu, 12 Mar 2020 11:31:07 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 074E0395C823; Thu, 12 Mar 2020 00:31:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 074E0395C823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1583973063; bh=6M70lLg9klWQELnLGuTQc3+GzTWQh3rVCCdAzQzIcrA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Sze/lp972th55jwUeRl/VlT/yDq56MU8Dw635b6JB2zzaH6qnbMLi7uIiDEXChb0C c0PrPEzWonjqReO4Zu90yFF4IRViMOeBvNCgE8vgj/ag9fWm9JeCajvI8ilv2c3YZ8 ouGKBiGPckx1M9e0HixFTXsw7uj/dSD9SkkLPXvY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id 2D2AA395C80B for ; Thu, 12 Mar 2020 00:31:00 +0000 (GMT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-21-CEtWx0V_Oh2v7VqG3Txijg-1; Wed, 11 Mar 2020 20:30:57 -0400 X-MC-Unique: CEtWx0V_Oh2v7VqG3Txijg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DDF34107ACC7 for ; Thu, 12 Mar 2020 00:30:56 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 76C6B60C18; Thu, 12 Mar 2020 00:30:56 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 02C0Ussh014410; Thu, 12 Mar 2020 01:30:54 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 02C0UrJi014409; Thu, 12 Mar 2020 01:30:53 +0100 Date: Thu, 12 Mar 2020 01:30:53 +0100 To: Jason Merrill Subject: [committed] testsuite: Fix concepts-using2.C failure on 32-bit targets [PR93907] Message-ID: <20200312003053.GI2156@tucnak> MIME-Version: 1.0 User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS 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: 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: Jakub Jelinek via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi! The test FAILs on 32-bit targets that don't have __int128 type. Fixed thusly, regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2020-03-12 Jakub Jelinek PR c++/93907 * g++.dg/cpp2a/concepts-using2.C (cc): Use long long instead of __int128 if __SIZEOF_INT128__ isn't defined. Jakub --- gcc/testsuite/g++.dg/cpp2a/concepts-using2.C.jj 2020-03-11 23:31:45.818595378 +0100 +++ gcc/testsuite/g++.dg/cpp2a/concepts-using2.C 2020-03-12 01:25:44.011097711 +0100 @@ -15,7 +15,11 @@ template using an = typenam template constexpr bool ao = c::d; template constexpr bool i = c<1>::d; template concept bb = i; +#ifdef __SIZEOF_INT128__ using cc = __int128; +#else +using cc = long long; +#endif template concept cd = bb; template concept ce = requires { requires cd; }; template concept h = ce;