From patchwork Tue Jan 30 17:14:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 1893070 Return-Path: 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=SbPJdS3x; 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 4TPWy35N1Wz23gZ for ; Wed, 31 Jan 2024 04:15:07 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 05CF13858C5E for ; Tue, 30 Jan 2024 17:15:05 +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.129.124]) by sourceware.org (Postfix) with ESMTPS id 542DF3858CDA for ; Tue, 30 Jan 2024 17:14:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 542DF3858CDA 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 542DF3858CDA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706634887; cv=none; b=jovWwPqNnXNB14rknGdfTYlSX2z5HM4n9zNtfnRhtr3/rLCjjHEXRxa3M122vnTPUf+F0x91XX67V6nnK85CRk03MGZOc0GV9Rs+7JpgDHEW+P1Gdd5OFr2yDy33DfUMvmWEatW+FW1FW7yqYadTgYZEQPvjB7uVDkHtjqP/CPA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706634887; c=relaxed/simple; bh=XInmbhmi/HJN6K1TfV2xHP9LbxoE3UZSFoNZCLLgVjA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=KGyuXBepZTqR9sfQPL73c0ScGQPQgwXNZgxdUdnRviLWtWzUkEaoSvRwbF5Tquk6Jy8LGxYVibzUA/hFxLMXrl0y0aeJ1nVYTJ31Q5mju0KS5S1iXUybDeyZeUfcVbJkAjHnV0rtsU/1sNeKhKaEXx4v5Bl13rbkzAFOaSbm8eo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706634884; 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=oyryOcdr5oFl7zeDWjqHQVx5DHRVbUvBynYX2qCDRog=; b=SbPJdS3xHv1qXrXhqBYZ+A+ZypKms+D26DQ1jteLjqa79DITTli99KgXzZiopgS5+6W42l +oEOOSd+LboXZgZeVPBY22cIqnw4rsMmZcHLq+GcIv+2T3DfEd5ayBHP84DCPgbyrwGn3n u+MMCLO0eK02a5IWevRv74uAD5sAKu4= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-XLF7oJuIPg2lJVyZsJy86g-1; Tue, 30 Jan 2024 12:14:29 -0500 X-MC-Unique: XLF7oJuIPg2lJVyZsJy86g-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-783f4adb738so480891385a.3 for ; Tue, 30 Jan 2024 09:14:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706634865; x=1707239665; 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=oyryOcdr5oFl7zeDWjqHQVx5DHRVbUvBynYX2qCDRog=; b=qDNGdOGDbTINS2Aqw7LBaHCjCCrLv+z5HMKyi5qT0EJ1kBEjIn87OI6urUGuRtcjPC DtFul4Py8RHMa6Ppyb2/XP2XImiXR2YVcF8LIbQPls9SkEb1iiXnXMUVfqVoEgIUFaqT Wex3toMLLrIATVWoNBt0XefMexcT+in3GwoUYv6Iuk7vY9z/RCcTY4zflAtU5fCTcXtV xKFNLJAGVWZn9IoH/BnaijRTaovz/fh78qspIsNON/d8kyaMkNNPz4E951B5TqRNRiju rX/l5YjEwC4dJaew1ZP6Z7rWGIs05j8wyUEFY30R2dcefwoECKKxlR1ZQtFA4WJ16qLB Rfbg== X-Gm-Message-State: AOJu0YyX+qY9YRRFEOE6I6JZyjBArQQ3Tg/KYj8OUlzp4bHLtR7MuwQ0 sURgcu8m6FG2v4nylY0mFe+AMXosEFtRECxGYow33bCrtDMg1N1h0dJyXbPNSzhtiSIlfd+4FhY LXXXjWgEgqUvNsVQSr3R8c3IA5tJ7rVdeR7ygiJt5EhGobSwt25V+DK7W4sb/1WRU1abcPZZpEz N0eVf1GzN2VCr0Hx+ViFJIdqBN3A4eEw9eL0KG X-Received: by 2002:a05:6214:260e:b0:681:24e9:f6fe with SMTP id gu14-20020a056214260e00b0068124e9f6femr9843992qvb.35.1706634864779; Tue, 30 Jan 2024 09:14:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/XXxjNoPeYaJEvwqfDs7ng+nRVCD3NmMElssOEi1OjdAIHWdv+rdAnbmic0ekze1fc3Rvxw== X-Received: by 2002:a05:6214:260e:b0:681:24e9:f6fe with SMTP id gu14-20020a056214260e00b0068124e9f6femr9843976qvb.35.1706634864445; Tue, 30 Jan 2024 09:14:24 -0800 (PST) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id p15-20020ae9f30f000000b00783f606dcf8sm2507968qkg.73.2024.01.30.09.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:14:24 -0800 (PST) From: Patrick Palka To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka Subject: [PATCH] c++: add original testcase [PR67898] Date: Tue, 30 Jan 2024 12:14:22 -0500 Message-ID: <20240130171422.3995225-1-ppalka@redhat.com> X-Mailer: git-send-email 2.43.0.473.gc5b454771e MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.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_H4, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Tested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- The original testcase from this PR (fixed by r14-8291) is rather different from the others, so let's add it to the testsuite. PR c++/67898 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/temp_default8.C: New test. --- gcc/testsuite/g++.dg/cpp0x/temp_default8.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/temp_default8.C diff --git a/gcc/testsuite/g++.dg/cpp0x/temp_default8.C b/gcc/testsuite/g++.dg/cpp0x/temp_default8.C new file mode 100644 index 00000000000..505c67d7c41 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/temp_default8.C @@ -0,0 +1,14 @@ +// PR c++/67898 +// { dg-do compile { target c++11 } } + +void f(int); +void f(float); + +template struct X { }; + +template +void test() { + X(); +} + +template void test();