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.129.124]) by sourceware.org (Postfix) with ESMTPS id 48ABD3858425 for ; Thu, 8 Sep 2022 14:57:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 48ABD3858425 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=1662649045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+gfRixH1oFJ95DafqyAiJ0uscx3q2i6KGs1gs8DCZUQ=; b=f1X118iAYQmOumXvAlTjo3D+xylLxqA1qlq7vH2SGzejInZmCXBvuDugbZ+msJJOOB43I9 5TAgdwrj9APKexMDVdszuZkp3PD4Kvj2Ed9wuw79LZzmOoMXBUfvVDT5K/Xmv3VPpcXlo5 usghM9b0TYND2VlG8GPKrbkZIZqkBfU= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-101-LqGoT8pCO4O_G_pdH5JVSQ-1; Thu, 08 Sep 2022 10:57:23 -0400 X-MC-Unique: LqGoT8pCO4O_G_pdH5JVSQ-1 Received: by mail-qt1-f199.google.com with SMTP id cj19-20020a05622a259300b003446920ea91so14722070qtb.10 for ; Thu, 08 Sep 2022 07:57:23 -0700 (PDT) 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:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=+gfRixH1oFJ95DafqyAiJ0uscx3q2i6KGs1gs8DCZUQ=; b=ihb2w4rUpq3HU8yGLR01zLxJAxas1eOXlprhdc11LtynTldNqAhgWu9o1xN6Bsi4Zn p0gnz8vnGCAJMHGwx7sF12LhgVg0wqwYotpDOOzekVrnTsK2Oyo7QX7ZfGfiG8Ro7y9f amjBWUjDzVtuZyof9Db2JJfO7A30UTWYGVTC3DeF4pTjTjKL20z5RJM9ESuB0ltYFqmD pz6LU0Lz7hdBAeclaxWn2oomap6bmj7dp8Swm8D8+WhmTKyhcYiEmomtPdaT5Ibst+J0 9iNeKceEekj04DEfTpjTaQlDCwarjmytvA/ZHrS3re7YGgXVC10DtsGyFwNLst5RkV/b sipQ== X-Gm-Message-State: ACgBeo3zTwoIFiQRsHZDwuKE1/3KVeBYHzdiKoknP0zirBqxlbaRFOCg +h0JPP0/5MVxylgW7f7PoBJ8e8NrUGQj3BCg9Jl8EasJprFNNzqmUWV6EuxyK+WrVLsSokcFHvA gGL95PZYhb+LhyoVRWEcCOvKB4rOaTJB/gBBADm1SXZeSxw4w4HhOMQc5XoiUi14G09I= X-Received: by 2002:a05:622a:11d2:b0:343:67a1:85e8 with SMTP id n18-20020a05622a11d200b0034367a185e8mr8041012qtk.11.1662649043182; Thu, 08 Sep 2022 07:57:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR7jaNN6pArKdEESWeyIHVzL4nwV5eR4K0wSPL/g+TdRTEK0+Yicq3JG/92xUvNWmeOCtpxp3g== X-Received: by 2002:a05:622a:11d2:b0:343:67a1:85e8 with SMTP id n18-20020a05622a11d200b0034367a185e8mr8040997qtk.11.1662649042925; Thu, 08 Sep 2022 07:57:22 -0700 (PDT) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id 69-20020a370548000000b006a6ab259261sm16644244qkf.29.2022.09.08.07.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 07:57:22 -0700 (PDT) From: Patrick Palka To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka Subject: [committed] c++: Add testcase for already fixed PR [PR99209] Date: Thu, 8 Sep 2022 10:57:16 -0400 Message-Id: <20220908145716.268510-1-ppalka@redhat.com> X-Mailer: git-send-email 2.37.3.518.g79f2338b37 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=-4.3 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,UNWANTED_LANGUAGE_BODY 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: This was incidentally fixed by r13-806-g221acd67ca50f8. PR c++/99209 gcc/testsuite/ChangeLog: * g++.dg/cpp2a/lambda-uneval17.C: New test. --- gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C diff --git a/gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C b/gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C new file mode 100644 index 00000000000..74e0f876371 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C @@ -0,0 +1,17 @@ +// PR c++/99209 +// { dg-do compile { target c++20 } } + +constexpr char f(...) = delete; +constexpr decltype(auto) f_adl(auto a) { return f(a); } + +namespace A { + constexpr char f(auto) { return 'A'; } + template void g(char FunctionParam = f_adl([]{})) { + char Local = f_adl([]{}); + } +} + +namespace B { + constexpr char f(auto) = delete; + void call() { A::g(); } +} -- 2.37.3.518.g79f2338b37