From patchwork Wed Oct 19 15:27:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 5693 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp389519wrs; Wed, 19 Oct 2022 08:31:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41n0e05wt+5tOFxqlIdzWl5QtTcY7p7BWZH4KAdmjxFRwI+B1gM+bAftx617nAhoRWi8Vf X-Received: by 2002:a05:6402:370c:b0:453:9fab:1b53 with SMTP id ek12-20020a056402370c00b004539fab1b53mr8223755edb.28.1666193468070; Wed, 19 Oct 2022 08:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666193468; cv=none; d=google.com; s=arc-20160816; b=al6muGzZAwPu+dIx8fymY+BdG2x+KteK61uE7hlt0PneqSLdThE00oLG6xuiJ5dmvv sc2Yyc7TfJRZjs+Ogb6ppCyslIyVoQ8JVv3hb+ne50hsveCbW/x9btgAjhBGLSxFZNH9 k2Xb4ekGjEOQZUpQWZtw1VP0PuIEfls18+B1D3+SwwTZl8fmM3VjfwbkYcnvWbrAiwvY w4QZUyx69xZFTRCoIosCVapUNdebQg+FFqzuvNHHGGNjzKDgyL+RwceumQG10NUNFURE 3+EE/RmAa0MA5XQqvpKjhmv0B5rEDopf2idcY0hFAYLGsFNG/EXG9KKcRau/IjWY1ved hL6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-disposition:in-reply-to:mime-version:references:message-id :subject:to:date:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=xaXwTcFkSTySkYnq4x2TUExXGuYIfPThq39AXcIePeU=; b=HkcsYN0Ns/PB2mi5H4SzePF2ZjN+aODqQ9BZki1+YG+dbZLeiICAAMOh5huEuTEWr7 FmufzbAshjY4ZRyP/DVXAPlSUL7hq/imxl4QsizjbFI35/W6SyhKH7nxcPAHgehu6I/T 27Clf3ZVPHhQlrKEnPPwjCrHZNgn8lA8rzCcT9c6JbEQGjtj3LM8C9JdqC2JBYcOQfH5 3oyyPClpIu+B0MpSnBItXWfFLJUlim3u5uRguPDUKLrVCIG27nh5OiKQrVS2wdElSMSa JRttt6QyGxQsnKh9RgUGieCmcVcHjVoyJAYL6baNU/rxlYsWZr63ToWYuSnaIxMqTBlm FVFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rs61khjB; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b13-20020a056402350d00b0045d4015cdaesi13347319edd.372.2022.10.19.08.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 08:31:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rs61khjB; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 26BCB38582AD for ; Wed, 19 Oct 2022 15:31:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26BCB38582AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666193465; bh=xaXwTcFkSTySkYnq4x2TUExXGuYIfPThq39AXcIePeU=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=rs61khjBZCAAf/8zM7FjPDh8Kz54OuLRm52J9tWMU3f2aD96Td/wjdnd38zI53KxA zXbd6bkb/3U3ec1Iu2klzMuYILeeA4Z4n6U/23eNpyaC4axhuuWyRoj9umTLWZRqaY IcAhWMWKKplr0jNFalSNkWpLsnfOh/nPrshV8en8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 0D3193857352 for ; Wed, 19 Oct 2022 15:28:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0D3193857352 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-433-M7LbtEcCPOmfzC9m45lHGQ-1; Wed, 19 Oct 2022 11:28:02 -0400 X-MC-Unique: M7LbtEcCPOmfzC9m45lHGQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 515AD101245C for ; Wed, 19 Oct 2022 15:28:02 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.193.252]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DE0C6C15BA5; Wed, 19 Oct 2022 15:28:01 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 29JFRiK03962662 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 19 Oct 2022 17:27:54 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 29JFRccs3962661; Wed, 19 Oct 2022 17:27:38 +0200 Date: Wed, 19 Oct 2022 17:27:37 +0200 To: Jason Merrill Subject: [PATCH] testsuite: Default make check-g++ vs. tests for newest C++ standard Message-ID: References: <2bfe4f0a-84cc-aae8-1834-6dff3918810a@redhat.com> MIME-Version: 1.0 In-Reply-To: <2bfe4f0a-84cc-aae8-1834-6dff3918810a@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP 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: 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: Jakub Jelinek Reply-To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747130481940163617?= X-GMAIL-MSGID: =?utf-8?q?1747130481940163617?= Hi! On Wed, Oct 19, 2022 at 09:10:48AM -0400, Jason Merrill wrote: > > The screw-up on my side with libstdc++ testing (tested normally rather > > than in C++23 mode) makes me wonder if we couldn't tweak the default > > testing. > > Dunno what libstdc++ testing normally does (just C++17?), make check-g++ > > tests by default { 98, 14, 17, 20 } (and I regularly use > > GXX_TESTSUITE_STDS=98,11,14,17,20,2b in environment but that doesn't > > cover libstdc++ I guess). > > When adding tests for upcoming C++ version, one always has a dilemma > > whether to use explicit // { dg-options "-std=c++2b" } > > or -std=gnu++2b and similar, then the test works in all modes, but it might > > be forgotten later on to be converted into // { dg-do whatever { target c++23 } } > > test so that when 23 is tested by default and say 26 or 29 appears too, > > we test it also in those modes, or just go with > > // { dg-do whatever { target c++23 } } > > which has the disadvantage that it is skipped when testing by default and > > one only tests it if he asks for the newer version. > > > > I wonder if we couldn't for the default testing (when one doesn't > > specify GXX_TESTSUITE_STDS or uses make check-c++-all and similar) > > improve things a little bit by automatically treat those > > // { dg-do whatever { target c++23 } } > > tests as // { dg-options "-std=c++2b" }. > > That would be great. Here is a patch that implements it. On make check-g++ RUNTESTFLAGS=dg.exp=cpp23/*.C the vanilla vs. patched gcc difference is: === g++ Summary === # of expected passes 1743 # of expected failures 2 # of unsupported tests 224 vs. === g++ Summary === # of expected passes 1829 # of expected failures 2 # of unsupported tests 112 (g++.sum details attached). 2022-10-19 Jakub Jelinek * lib/g++-dg.exp (g++-dg-runtest): When using defaulted std_list, if test has { dg-do * { target c++23 } } directive, use { 23 } with which the test will run instead of { 98 14 17 20 } which would make it UNSUPPORTED in all cases. Jakub --- testsuite/g++/g++.sum 2022-10-19 17:06:38.351280055 +0200 +++ testsuite/g++/g++.sum 2022-10-19 17:11:15.948537868 +0200 @@ -647,56 +647,39 @@ PASS: g++.dg/cpp23/auto-array4.C -std=g PASS: g++.dg/cpp23/auto-array4.C -std=gnu++20 (test for warnings, line 12) PASS: g++.dg/cpp23/auto-array4.C -std=gnu++20 at line 13 (test for warnings, line 12) PASS: g++.dg/cpp23/auto-array4.C -std=gnu++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/auto-fncast1.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast1.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast1.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast1.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast10.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast10.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast10.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast10.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast11.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast11.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast11.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast11.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast12.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast12.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast12.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast12.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast2.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast2.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast2.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast2.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast3.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast3.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast3.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast3.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast4.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast4.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast4.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast4.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast5.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast5.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast5.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast5.C -std=c++20 +PASS: g++.dg/cpp23/auto-fncast1.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast10.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast11.C -std=c++23 (test for errors, line 19) +PASS: g++.dg/cpp23/auto-fncast11.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast12.C -std=c++23 (test for errors, line 7) +PASS: g++.dg/cpp23/auto-fncast12.C -std=c++23 (test for errors, line 8) +PASS: g++.dg/cpp23/auto-fncast12.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast2.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 10) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 11) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 13) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 14) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 15) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 16) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 17) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 18) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 19) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for errors, line 20) +PASS: g++.dg/cpp23/auto-fncast3.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast4.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast5.C -std=c++23 (test for errors, line 14) +PASS: g++.dg/cpp23/auto-fncast5.C -std=c++23 (test for errors, line 15) +PASS: g++.dg/cpp23/auto-fncast5.C -std=c++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/auto-fncast6.C -std=c++98 UNSUPPORTED: g++.dg/cpp23/auto-fncast6.C -std=c++14 UNSUPPORTED: g++.dg/cpp23/auto-fncast6.C -std=c++17 PASS: g++.dg/cpp23/auto-fncast6.C -std=c++20 (test for errors, line 10) PASS: g++.dg/cpp23/auto-fncast6.C -std=c++20 (test for errors, line 11) PASS: g++.dg/cpp23/auto-fncast6.C -std=c++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/auto-fncast7.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast7.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast7.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast7.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast8.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast8.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast8.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast8.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/auto-fncast9.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/auto-fncast9.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/auto-fncast9.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/auto-fncast9.C -std=c++20 +PASS: g++.dg/cpp23/auto-fncast7.C -std=c++23 (test for errors, line 8) +PASS: g++.dg/cpp23/auto-fncast7.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast8.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/auto-fncast9.C -std=c++23 (test for excess errors) PASS: g++.dg/cpp23/charlit-encoding1.C -std=c++98 (test for excess errors) PASS: g++.dg/cpp23/charlit-encoding1.C -std=c++98 execution test PASS: g++.dg/cpp23/charlit-encoding1.C -std=c++14 (test for excess errors) @@ -705,10 +688,9 @@ PASS: g++.dg/cpp23/charlit-encoding1.C PASS: g++.dg/cpp23/charlit-encoding1.C -std=c++17 execution test PASS: g++.dg/cpp23/charlit-encoding1.C -std=c++20 (test for excess errors) PASS: g++.dg/cpp23/charlit-encoding1.C -std=c++20 execution test -UNSUPPORTED: g++.dg/cpp23/concepts-err1.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/concepts-err1.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/concepts-err1.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/concepts-err1.C -std=c++20 +PASS: g++.dg/cpp23/concepts-err1.C -std=c++23 (test for errors, line 5) +PASS: g++.dg/cpp23/concepts-err1.C -std=c++23 (test for errors, line 6) +PASS: g++.dg/cpp23/concepts-err1.C -std=c++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/consteval-if1.C -std=gnu++98 UNSUPPORTED: g++.dg/cpp23/consteval-if1.C -std=gnu++14 UNSUPPORTED: g++.dg/cpp23/consteval-if1.C -std=gnu++17 @@ -904,60 +886,54 @@ PASS: g++.dg/cpp23/constexpr-nonlit7.C PASS: g++.dg/cpp23/constexpr-nonlit7.C -std=c++17 (test for excess errors) PASS: g++.dg/cpp23/constexpr-nonlit7.C -std=c++20 (test for excess errors) PASS: g++.dg/cpp23/cplusplus.C (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/decltype1.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/decltype1.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/decltype1.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/decltype1.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/decltype2.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/decltype2.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/decltype2.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/decltype2.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/elision1.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/elision1.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/elision1.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/elision1.C -std=c++20 +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for errors, line 14) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for warnings, line 16) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for errors, line 20) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for errors, line 41) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for warnings, line 48) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for errors, line 62) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for warnings, line 69) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for warnings, line 83) +PASS: g++.dg/cpp23/decltype1.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/decltype2.C -std=c++23 (test for warnings, line 35) +PASS: g++.dg/cpp23/decltype2.C -std=c++23 (test for warnings, line 47) +PASS: g++.dg/cpp23/decltype2.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/elision1.C -std=c++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/elision2.C -std=c++98 UNSUPPORTED: g++.dg/cpp23/elision2.C -std=c++14 UNSUPPORTED: g++.dg/cpp23/elision2.C -std=c++17 PASS: g++.dg/cpp23/elision2.C -std=c++20 (test for errors, line 24) PASS: g++.dg/cpp23/elision2.C -std=c++20 (test for errors, line 30) PASS: g++.dg/cpp23/elision2.C -std=c++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/elision3.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/elision3.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/elision3.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/elision3.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/elision4.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/elision4.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/elision4.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/elision4.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/elision5.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/elision5.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/elision5.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/elision5.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/elision6.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/elision6.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/elision6.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/elision6.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/elision7.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/elision7.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/elision7.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/elision7.C -std=c++20 -UNSUPPORTED: g++.dg/cpp23/ext-floating1.C -std=gnu++98 -UNSUPPORTED: g++.dg/cpp23/ext-floating1.C -std=gnu++14 -UNSUPPORTED: g++.dg/cpp23/ext-floating1.C -std=gnu++17 -UNSUPPORTED: g++.dg/cpp23/ext-floating1.C -std=gnu++20 +PASS: g++.dg/cpp23/elision3.C -std=c++23 (test for errors, line 15) +PASS: g++.dg/cpp23/elision3.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/elision4.C -std=c++23 (test for errors, line 14) +PASS: g++.dg/cpp23/elision4.C -std=c++23 (test for errors, line 27) +PASS: g++.dg/cpp23/elision4.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/elision5.C -std=c++23 (test for errors, line 34) +PASS: g++.dg/cpp23/elision5.C -std=c++23 (test for errors, line 43) +PASS: g++.dg/cpp23/elision5.C -std=c++23 (test for warnings, line 52) +PASS: g++.dg/cpp23/elision5.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/elision6.C -std=c++23 (test for errors, line 16) +PASS: g++.dg/cpp23/elision6.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/elision7.C -std=c++23 (test for errors, line 44) +PASS: g++.dg/cpp23/elision7.C -std=c++23 (test for warnings, line 46) +PASS: g++.dg/cpp23/elision7.C -std=c++23 (test for errors, line 53) +PASS: g++.dg/cpp23/elision7.C -std=c++23 (test for errors, line 65) +PASS: g++.dg/cpp23/elision7.C -std=c++23 (test for excess errors) +PASS: g++.dg/cpp23/ext-floating1.C -std=gnu++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/ext-floating10.C -std=gnu++98 UNSUPPORTED: g++.dg/cpp23/ext-floating10.C -std=gnu++14 UNSUPPORTED: g++.dg/cpp23/ext-floating10.C -std=gnu++17 UNSUPPORTED: g++.dg/cpp23/ext-floating10.C -std=gnu++20 -UNSUPPORTED: g++.dg/cpp23/ext-floating11.C -std=gnu++98 -UNSUPPORTED: g++.dg/cpp23/ext-floating11.C -std=gnu++14 -UNSUPPORTED: g++.dg/cpp23/ext-floating11.C -std=gnu++17 -UNSUPPORTED: g++.dg/cpp23/ext-floating11.C -std=gnu++20 -UNSUPPORTED: g++.dg/cpp23/ext-floating2.C -std=gnu++98 -UNSUPPORTED: g++.dg/cpp23/ext-floating2.C -std=gnu++14 -UNSUPPORTED: g++.dg/cpp23/ext-floating2.C -std=gnu++17 -UNSUPPORTED: g++.dg/cpp23/ext-floating2.C -std=gnu++20 +PASS: g++.dg/cpp23/ext-floating11.C -std=gnu++23 (test for excess errors) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for warnings, line 55) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for warnings, line 59) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for warnings, line 63) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for warnings, line 81) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for warnings, line 85) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for warnings, line 110) +PASS: g++.dg/cpp23/ext-floating2.C -std=gnu++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/ext-floating3.C -std=gnu++98 UNSUPPORTED: g++.dg/cpp23/ext-floating3.C -std=gnu++14 UNSUPPORTED: g++.dg/cpp23/ext-floating3.C -std=gnu++17 @@ -970,10 +946,7 @@ UNSUPPORTED: g++.dg/cpp23/ext-floating5. UNSUPPORTED: g++.dg/cpp23/ext-floating5.C -std=gnu++14 UNSUPPORTED: g++.dg/cpp23/ext-floating5.C -std=gnu++17 UNSUPPORTED: g++.dg/cpp23/ext-floating5.C -std=gnu++20 -UNSUPPORTED: g++.dg/cpp23/ext-floating6.C -std=gnu++98 -UNSUPPORTED: g++.dg/cpp23/ext-floating6.C -std=gnu++14 -UNSUPPORTED: g++.dg/cpp23/ext-floating6.C -std=gnu++17 -UNSUPPORTED: g++.dg/cpp23/ext-floating6.C -std=gnu++20 +PASS: g++.dg/cpp23/ext-floating6.C -std=gnu++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/ext-floating7.C -std=gnu++98 UNSUPPORTED: g++.dg/cpp23/ext-floating7.C -std=gnu++14 UNSUPPORTED: g++.dg/cpp23/ext-floating7.C -std=gnu++17 @@ -996,10 +969,13 @@ PASS: g++.dg/cpp23/init-stmt1.C -std=c+ PASS: g++.dg/cpp23/init-stmt1.C -std=c++20 (test for errors, line 20) PASS: g++.dg/cpp23/init-stmt1.C -std=c++20 (test for errors, line 25) PASS: g++.dg/cpp23/init-stmt1.C -std=c++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/init-stmt2.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/init-stmt2.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/init-stmt2.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/init-stmt2.C -std=c++20 +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for errors, line 12) +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for errors, line 14) +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for errors, line 16) +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for errors, line 18) +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for errors, line 20) +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for errors, line 22) +PASS: g++.dg/cpp23/init-stmt2.C -std=c++23 (test for excess errors) PASS: g++.dg/cpp23/label1.C -std=c++98 (test for errors, line 14) PASS: g++.dg/cpp23/label1.C -std=c++98 (test for errors, line 20) PASS: g++.dg/cpp23/label1.C -std=c++98 (test for errors, line 28) @@ -1043,10 +1019,14 @@ PASS: g++.dg/cpp23/label1.C -std=c++20 PASS: g++.dg/cpp23/label1.C -std=c++20 (test for errors, line 84) PASS: g++.dg/cpp23/label1.C -std=c++20 (test for errors, line 88) PASS: g++.dg/cpp23/label1.C -std=c++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/label2.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/label2.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/label2.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/label2.C -std=c++20 +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 12) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 22) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 29) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 30) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 37) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 44) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for errors, line 52) +PASS: g++.dg/cpp23/label2.C -std=c++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/lambda-attr1.C -std=c++98 PASS: g++.dg/cpp23/lambda-attr1.C -std=c++14 (test for warnings, line 7) PASS: g++.dg/cpp23/lambda-attr1.C -std=c++14 (test for warnings, line 10) @@ -1130,10 +1110,7 @@ PASS: g++.dg/cpp23/lambda-specifiers1.C PASS: g++.dg/cpp23/lambda-specifiers1.C -std=gnu++20 (test for warnings, line 16) PASS: g++.dg/cpp23/lambda-specifiers1.C -std=gnu++20 (test for warnings, line 17) PASS: g++.dg/cpp23/lambda-specifiers1.C -std=gnu++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/lambda-specifiers2.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/lambda-specifiers2.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/lambda-specifiers2.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/lambda-specifiers2.C -std=c++20 +PASS: g++.dg/cpp23/lambda-specifiers2.C -std=c++23 (test for excess errors) PASS: g++.dg/cpp23/lookup2.C -std=c++98 (test for excess errors) PASS: g++.dg/cpp23/lookup2.C -std=c++14 (test for excess errors) PASS: g++.dg/cpp23/lookup2.C -std=c++17 (test for excess errors) @@ -1688,10 +1665,7 @@ PASS: g++.dg/cpp23/normalize7.C -std=gn PASS: g++.dg/cpp23/normalize7.C -std=gnu++20 (test for errors, line 6) PASS: g++.dg/cpp23/normalize7.C -std=gnu++20 (test for errors, line 8) PASS: g++.dg/cpp23/normalize7.C -std=gnu++20 (test for excess errors) -UNSUPPORTED: g++.dg/cpp23/size_t-literals.C -std=c++98 -UNSUPPORTED: g++.dg/cpp23/size_t-literals.C -std=c++14 -UNSUPPORTED: g++.dg/cpp23/size_t-literals.C -std=c++17 -UNSUPPORTED: g++.dg/cpp23/size_t-literals.C -std=c++20 +PASS: g++.dg/cpp23/size_t-literals.C -std=c++23 (test for excess errors) UNSUPPORTED: g++.dg/cpp23/static-operator-call1.C -std=gnu++98 PASS: g++.dg/cpp23/static-operator-call1.C -std=gnu++14 (test for warnings, line 8) PASS: g++.dg/cpp23/static-operator-call1.C -std=gnu++14 (test for warnings, line 30) @@ -1980,8 +1954,8 @@ PASS: g++.dg/cpp23/whitespace-splice1.C === g++ Summary === -# of expected passes 1743 +# of expected passes 1829 # of expected failures 2 -# of unsupported tests 224 +# of unsupported tests 112 /usr/src/gcc/obj/gcc/xg++ version 13.0.0 20221018 (experimental) (GCC) --- gcc/testsuite/lib/g++-dg.exp.jj 2022-03-30 09:11:53.306103969 +0200 +++ gcc/testsuite/lib/g++-dg.exp 2022-10-19 17:10:51.574866364 +0200 @@ -53,7 +53,16 @@ proc g++-dg-runtest { testcases flags de if { [llength $gpp_std_list] > 0 } { set std_list $gpp_std_list } else { - set std_list { 98 14 17 20 } + # If the test requires a newer C++ version than which + # is tested by default, use that C++ version for that + # single test. This should be updated or commented + # out whenever the default std_list is updated or newer + # C++ effective target is added. + if [search_for $test "{ dg-do * { target c++23 } }"] { + set std_list { 23 } + } else { + set std_list { 98 14 17 20 } + } } set option_list { } foreach x $std_list {