Message ID | 20231211170004.1393588-1-ppalka@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VllPsn7j; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Spp0C5NS7z20Gs for <incoming@patchwork.ozlabs.org>; Tue, 12 Dec 2023 04:00:25 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33E73385843F for <incoming@patchwork.ozlabs.org>; Mon, 11 Dec 2023 17:00:23 +0000 (GMT) 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 8A3B83858D38 for <gcc-patches@gcc.gnu.org>; Mon, 11 Dec 2023 17:00:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A3B83858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A3B83858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702314012; cv=none; b=QhZs9QgZ2qsrQ/4uHnRRNe0ToxzUwS10RLj5Hfi59DuwR6Quf6Z3EZO3acK/OuZp1Q2Upy/o1TpX81+IqCOeBEa2At3otHUCJsXAAE7HUIhdamIQWJQ/E6THsUz9Gz50ItWGBGcBMWHd2VjgyON1cDZZ6WHc58LFQ+4TS08Y+58= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702314012; c=relaxed/simple; bh=JhCKfSzInvRxcQgL7ut2NlHMcNxtO9Nh2KsyJ9Rgpnk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=x6gSyNWUtjxY+y13ZvFog9yG4LA1uwFzUKsaUm87hJQ8+cfdSgSXtamJn8ayBotu1T8/+tgXrrSryuKFAivo04MFHITWgS2ZpG3Xp21Hh/PJxWyhsol1zMSN/92qTcsSsHF7xqGR03LSnMSQ8CuClGPFfozVqav/8xW0CcKInfw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702314011; 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=EZEMgOZeUKjprehtPGVUEkhVqSm5AVzMQSCBH0D3AEg=; b=VllPsn7j/aBfKRFGlGYg6s3K9Th6JkUIrTPsQSA2GR3+Vx5rnuLjlgSAh5G4FODk8FKSti yZaDDsk9vHUPnrd52+m8+pQ4S0sjkmBjvPjDxuj1rBvfGz8AzLKodX+HT9a4SmP9FBKVS9 YvtBgEULxxHhiRc9BsH5XbZgHtlwfyM= Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-394-9aFH6oh-P72CeQE2ZsEReg-1; Mon, 11 Dec 2023 12:00:10 -0500 X-MC-Unique: 9aFH6oh-P72CeQE2ZsEReg-1 Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3b9d731fd1bso7687891b6e.1 for <gcc-patches@gcc.gnu.org>; Mon, 11 Dec 2023 09:00:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702314008; x=1702918808; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EZEMgOZeUKjprehtPGVUEkhVqSm5AVzMQSCBH0D3AEg=; b=YUY/vCfFwTgWkwacRJQ3yP3yQ0oJ9YhLRfiy1IdxUxcpG25Ba5M4UeVeFNK7VSDJBU JNg6hD16yQN0Koqc8noJKgKmRgf4jEhAfyEGYOaY44dcEJPEN8cV2wSqwyOTl5ItjUD8 O+u0otHgKNgeq/25vkV4OEiz7UaQ1kAlnDM+V+WOUbwzMOvmyi0KJaaOncWg/fwA+I8l mEjC/hTgRfzIv7rr7kpVjtP0RCM/eNGzMix95iSaQAArexhzE/Zzg1eaa8fWguEaA04E ka0PUJAMhARj3s3xEU4p4t2O5sQO1epdJw+nGu7bHDGoly4PPiJmjKNbdcZEFpfwOzqq EgjA== X-Gm-Message-State: AOJu0YxoSeHUYWsu76zXQv4YjeTn7tB53jOP/Vj/B8tlSmubrfu6w0sZ NOXlY2gLfVEt9Ki2OBmJMXl2NlucVBi4FGtHIehJ/43VE1uM7QaS0XI/EcffEI379TOFv9dmU1T fv+jAqsRlR/O3L4F4yyWbUrHHvGcqhXvd/o4yShg9j0r3R9nJc3c05/RsnIKLacvfPJRymZZtHP 8= X-Received: by 2002:a05:6808:1704:b0:3a4:316c:8eeb with SMTP id bc4-20020a056808170400b003a4316c8eebmr6349581oib.40.1702314007864; Mon, 11 Dec 2023 09:00:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOsjTy7OiU8xAWzK3StQkmYk0cS3Sh++AD5IQ9xdCODOiwmuD2mxCrQeaKts8vIoTPtV1c5g== X-Received: by 2002:a05:6808:1704:b0:3a4:316c:8eeb with SMTP id bc4-20020a056808170400b003a4316c8eebmr6349555oib.40.1702314007356; Mon, 11 Dec 2023 09:00:07 -0800 (PST) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id bj12-20020a05620a190c00b0077f04cce6e5sm3057928qkb.14.2023.12.11.09.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:00:06 -0800 (PST) From: Patrick Palka <ppalka@redhat.com> To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka <ppalka@redhat.com> Subject: [pushed] c++: add fixed testcase [PR63378] Date: Mon, 11 Dec 2023 12:00:04 -0500 Message-ID: <20231211170004.1393588-1-ppalka@redhat.com> X-Mailer: git-send-email 2.43.0.76.g1a87c842ec 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.9 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_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[pushed] c++: add fixed testcase [PR63378]
|
expand
|
diff --git a/gcc/testsuite/g++.dg/template/fnspec3.C b/gcc/testsuite/g++.dg/template/fnspec3.C new file mode 100644 index 00000000000..c36cb17751d --- /dev/null +++ b/gcc/testsuite/g++.dg/template/fnspec3.C @@ -0,0 +1,20 @@ +// PR c++/63378 +// { dg-do compile { target c++11 } } + +template<class T1, class S1> +struct B { }; + +template<class T1> +struct A { +private: + template<class T2, class S2> + static B<T2, S2> g(); + +public: + template<class S2> + auto f() -> decltype(g<T1, S2>()); +}; + +template<> +template<> +auto A<int>::f<float>() -> B<int, float>;