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 ESMTPS id 3BF1F385B187 for ; Mon, 28 Nov 2022 20:51:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3BF1F385B187 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669668713; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5UBj/F67LQItHOOObC07JijcD4kYlW2Wsb0tI1T4krw=; b=DG2epe+NxdU/sYRwZ4qjAOGvechcoMjZXV6NskiKGgpJJCLYfEVFiPnf77rLyDgeFa4zjm TrdDrloiiGRwEGtTtVRIqrAc8BBJv8YWJzWvo01NqLlFbseAPd6uD0e1hUaAd9XfAC5PBB VbxlYEGrncaDRGSxV7T0h9+8bd7itgY= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-452-leLtHWnvMCWupewjsPaFiw-1; Mon, 28 Nov 2022 15:51:52 -0500 X-MC-Unique: leLtHWnvMCWupewjsPaFiw-1 Received: by mail-qk1-f198.google.com with SMTP id j13-20020a05620a410d00b006e08208eb31so22768065qko.3 for ; Mon, 28 Nov 2022 12:51:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5UBj/F67LQItHOOObC07JijcD4kYlW2Wsb0tI1T4krw=; b=rz+zEDpTj3AWt5ntwkGVX51ukigATd42burDwvOV1B8vb36Y9JMfhCNs60rf1beJWx rtDysylYs+nsw94asfVRmYY5Fw3I1lf01h2PdKWKGHyIjCdCuWPNpJN3IfIEwIgIzgTg 58DjpA8zt65fxaTjcVBDtCTA4vH7gpJGL3+cSpiJ03MnEi/6lV0RsMs/wVOBh0rMAv26 0PGZ0ebP6Vpw17qc8FsrEUK9f0Ew01f/Zk02yu7sWAohdkGwLGDNKCDwpD0tzFzrCLux 7aZmC1Ou07wjlx1ZgCLpH25Xo4aWVNDyfmjmVG2++7UgjTLeCdZRedsbyWv0WeIzQSVH 0Rjw== X-Gm-Message-State: ANoB5pnUhmIhw1ba3TqqmyrXOTqOMQ8ExbsOt5u3XXlAzawmFJXwvrxN m8+ck8mE0t3iUrjNTVDQueUBLh//WRZSAtgaDGKMDFqUdSPw2gGPrD3NUvFvJsdzvobhxKnOyGm pa+MImtTU1+60p7bvmLAMEgcvR9FM/Qp1YBOcogbwU9QRR2ann76MHi3tZbghJctNRQ== X-Received: by 2002:a05:620a:2784:b0:6fa:2b1c:65ba with SMTP id g4-20020a05620a278400b006fa2b1c65bamr46267255qkp.407.1669668711752; Mon, 28 Nov 2022 12:51:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6f/gx3BuHT1tMG+Y7vGHhnj+GIVCL0ftL1PUP/rPBTIIMV8gj2drhem/H5oFU79IezuBA78Q== X-Received: by 2002:a05:620a:2784:b0:6fa:2b1c:65ba with SMTP id g4-20020a05620a278400b006fa2b1c65bamr46267233qkp.407.1669668711368; Mon, 28 Nov 2022 12:51:51 -0800 (PST) Received: from jason.com (130-44-159-43.s15913.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [130.44.159.43]) by smtp.gmail.com with ESMTPSA id g8-20020ac87748000000b00399edda03dfsm7375026qtu.67.2022.11.28.12.51.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 12:51:50 -0800 (PST) From: Jason Merrill To: gcc-patches@gcc.gnu.org Subject: [pushed] c++: be more strict about 'concept bool' Date: Mon, 28 Nov 2022 15:51:42 -0500 Message-Id: <20221128205142.541060-1-jason@redhat.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-12.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_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 List-Id: Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- Some clang folks mailed me asking about being less permissive about 'concept bool', so let's bump it up from pedwarn to permerror. gcc/cp/ChangeLog: * parser.cc (cp_parser_decl_specifier_seq): Change 'concept bool' diagnostic from pedwarn to permerror. --- gcc/cp/parser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index aec625e2d9c..82459b7683a 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -15831,11 +15831,11 @@ cp_parser_decl_specifier_seq (cp_parser* parser, { cp_token *next = cp_lexer_peek_token (parser->lexer); if (next->keyword == RID_BOOL) - pedwarn (next->location, 0, "the % keyword is not " - "allowed in a C++20 concept definition"); + permerror (next->location, "the % keyword is not " + "allowed in a C++20 concept definition"); else - pedwarn (token->location, 0, "C++20 concept definition syntax " - "is % = %>"); + error_at (token->location, "C++20 concept definition syntax " + "is % = %>"); } /* In C++20 a concept definition is just 'concept name = expr;' base-commit: 47d81b1b89d615cea27307c713a4afe591e1cd2d -- 2.31.1