From patchwork Wed Feb 12 16:30:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 1236942 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519419-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=M3TS6xkc; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eZ4Aj13K; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48HlWQ3X59z9s3x for ; Thu, 13 Feb 2020 03:30:56 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=olleJ9JOiwkGzsaO wMIq2MGt6UU4ey8IZqLIPI4m6m2jwzPJljusO+xl+bwkctC3Z34gpZE0Ss4hw8Dp BVhJwDjWJ98nPrjHslszONNEJI1dBi0iA1Y/AJBkzws7g7Y5N8n/YS+Tc8++Ex1s 5giwUXYrx1IUcGn7SNZFAYuq4dY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=3eOmIsJ1NDKB5Z0KcfUE48 bZEOc=; b=M3TS6xkcC3YnuySjhQZQzJKLitEMd7TuMSh+4AkYUA9I2H8arI3pHc 6IWL0Mw74+HrEq/gTCCCeJ2PyzAR8b6CHVlTaFlIMB9izRdAvLbZNxQWNRueQwWe X/pAvF1ROnXVD4VGl9y8Tp3792L6s9UqMnCt2e79ZwpsKuqI6QtlQ= Received: (qmail 25910 invoked by alias); 12 Feb 2020 16:30:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 25797 invoked by uid 89); 12 Feb 2020 16:30:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-1.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2020 16:30:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581525016; 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=XpRkGjOkW2tZSKduPoWnmVNU/GJT9O++ehEJhyc7pos=; b=eZ4Aj13KS/5uv5T68XWCBW1T+9ufLT04CY3SGY1MSQSUGbvUzp6+TCAml0T2JfKjErfeOh DgmGokVRz6UHowXpOAv4XtdlUriWQpvXUHAjOjmTqR2ytfZhbU85zilId+agfx0x3Wev1G Pa1Oxr9sdx4mPq/AT02bxJmcwbuMpJs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-150-i-K2jbhbO8CbObUT3T_ORA-1; Wed, 12 Feb 2020 11:30:12 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CA5C9802685 for ; Wed, 12 Feb 2020 16:30:11 +0000 (UTC) Received: from pdp-11.bss.redhat.com (unknown [10.20.4.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E2FD1001B23; Wed, 12 Feb 2020 16:30:11 +0000 (UTC) From: Marek Polacek To: GCC Patches Cc: Jason Merrill Subject: [committed] c++: Add new test [PR88819] Date: Wed, 12 Feb 2020 11:30:03 -0500 Message-Id: <20200212163003.434238-1-polacek@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Fixed by r10-1975-g59febe0ece37bedab7f42ae51b9f2b7a372d2950. 2020-02-12 Marek Polacek PR c++/88819 * g++.dg/cpp2a/nontype-class32.C: New test. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp2a/nontype-class32.C | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp2a/nontype-class32.C base-commit: e428a9cf85a8bdde9d031a215e10bd96eb3b789a diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 968b903411d..e2f590b48f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-12 Marek Polacek + + PR c++/88819 + * g++.dg/cpp2a/nontype-class32.C: New test. + 2020-02-12 Marek Polacek PR c++/93684 - ICE-on-invalid with broken attribute. diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-class32.C b/gcc/testsuite/g++.dg/cpp2a/nontype-class32.C new file mode 100644 index 00000000000..6a4dac5c90e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/nontype-class32.C @@ -0,0 +1,10 @@ +// PR c++/88819 +// { dg-do compile { target c++2a } } + +template class TT, class R = TT <0>> struct A +{ + template struct B {}; +}; +template struct C {}; + +A> a;