From patchwork Wed Sep 14 18:23:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1222 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2302:b0:79:6ae5:3758 with SMTP id gv2csp845699dyb; Wed, 14 Sep 2022 11:25:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6b7R52Qb9dJTM9dpK7llKvObKiz+tXvtuOA9dAblW2iSukBKZ9/5qEyko1WTj6iYqFY5nK X-Received: by 2002:a05:6402:3508:b0:451:db83:b2a7 with SMTP id b8-20020a056402350800b00451db83b2a7mr13279546edd.266.1663179948937; Wed, 14 Sep 2022 11:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663179948; cv=none; d=google.com; s=arc-20160816; b=H//0dzc4HWUeREx/iFZTH4zjsR2rZ6ILF+2xOuE5B/ZcwOmiwNy1CpcNBJj8TQJLwT cGs+zrM/jgmzHKBknMw+Ex8SOl2MvmMk7YcLytcWDkz5ROEBNaMCihWtnmt4Y1Bib3X8 ykOP9vNYQ5sghN27VMSxmcUy4viYXMqgRsGYi/H6xIzlcnLDmE1NoSAva7VcfMqB5CHK uEnBPJJkCXQ+h4VP0eLm1tslIWvuktb0UBfvanXwdBfT6H6xOB9QZfq8a5nesoqXjsQp O+8kp8Up/wR8VHccO6c0LP4kYJR96xqt+o7PmRXw4S5RDbnsYZPxmeEWbGkcXEdam4LK 0hnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=LkVVvSDjihAXYEGSfxGzKnKQF2ylpp+Nl89+6iD4bm8=; b=c+IIHmd88yqlyeo6hu1mSaKSZca095rbM5KPHVeWCJ0NasRm89PxElxaFd1Kt9/wZY 9EZ8JbfkMDaOB4UnD0TkRS73HsPP4lqpZYuZRGwtomuoNWp9z6J1Hac1LU6SPiQ5TVAn wQnRrw+EifapVyQHnhs03NK7jUeTC5jZVhwDyK7hqtnh+RFpLA3lfWcaCXiCSl7XWpzb APcx2wrv/yBTsWpvQYJpyW9VaFPTfY3eXrnh1tIqqXoEHcj8niGC9xNQRdnRZqrHULos EPo3aEMUq6vcGkjke3wOB5bqNLJJJ7McZxegdV0E2/IKYE+fbWIo9+fHOuJgBwFROZE0 yUTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=gJCpvUEh; 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 g3-20020a1709065d0300b007708617c995si1272500ejt.339.2022.09.14.11.25.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 11:25:48 -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=gJCpvUEh; 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 2F0E4384D15E for ; Wed, 14 Sep 2022 18:24:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F0E4384D15E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663179889; bh=LkVVvSDjihAXYEGSfxGzKnKQF2ylpp+Nl89+6iD4bm8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=gJCpvUEhOZZl+NHUJ7aW6uEfcD1S5Zci3OLz93w/iIEh36EfKLr2txiVxX8Lk7tXz 0CFF6NbloWTmt/vkgZ8bHQzaHd0rxX579mbGNjba/5o+RAs4/DZeFAvSl9BEVg8slw 8jyiXhC9wbexCaEgSc2l/Zexp7S0PkuOb/3eylaM= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 01022384B824 for ; Wed, 14 Sep 2022 18:23:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 01022384B824 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-346-k3tFo8zrMLS9OLi9zEWmVA-1; Wed, 14 Sep 2022 14:23:38 -0400 X-MC-Unique: k3tFo8zrMLS9OLi9zEWmVA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 441B1294EDE3; Wed, 14 Sep 2022 18:23:38 +0000 (UTC) Received: from localhost (unknown [10.33.36.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0E69C40C6EC2; Wed, 14 Sep 2022 18:23:37 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add comment to 17_intro/names.cc test Date: Wed, 14 Sep 2022 19:23:37 +0100 Message-Id: <20220914182337.263664-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.8 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_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely 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?1743970578007032031?= X-GMAIL-MSGID: =?utf-8?q?1743970578007032031?= Tested x86_64-linux, pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc: Explain why poison pragma can't be used. --- libstdc++-v3/testsuite/17_intro/names.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index 86fb8f8999b..82e201c71b0 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -20,6 +20,8 @@ // Define macros for some common variables names that we must not use for // naming variables, parameters etc. in the library. +// N.B. we cannot use '#pragma GCC poison A' because that also prevents using +// these names even as macro arguments, e.g. #define FOO(A) BAR(A) #define A ( #define B ( #define C (