From patchwork Fri Dec 6 22:13:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 1205297 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-515384-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.b="BaZC+aJ/"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="B15AYB15"; 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 47V6Lk1wn0z9sPf for ; Sat, 7 Dec 2019 09:14:06 +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:date :from:to:cc:subject:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=D5vpAQ8Civ75ulK3 /VbgfU/YRQMSw91SqT9JuPV83JDZacaI5Z2MpiB2jD2iTgxChRZXebq4V9oCLJa7 OHfHXhKQkmPlzI983sqLyDq01P5mrfXOP6xUyrFT+JSLaa19nAWhhqJgJmRVypfT nZUHwztBQfJsIogkoPYnTg69xjE= 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:date :from:to:cc:subject:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=uu4vkhwMqjrhGLdOFEWPG3 adXmE=; b=BaZC+aJ/fhatR1wDB4Ds0je6zRShIBPwwfA4FqwyR0RG3ZdY8AbwVm +zrVzs9B9m0EXCPLojwGRIX4yuyWmkwzHbn0gQHrB8OdkF/+xKHs8yYrZKahc5yN Y8fTlYKU5WobTux5yf5U8abA7F7D30K+BBKLmzRs1C06e5dI9UdcI= Received: (qmail 102342 invoked by alias); 6 Dec 2019 22:13:59 -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 102334 invoked by uid 89); 6 Dec 2019 22:13:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Dec 2019 22:13:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575670436; 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=uZuaahr86DIJJD+4dr2XVV5qmH+zoYSiMsuLgiqE66Y=; b=B15AYB15FDzK6RrGHQRwuK3xhpekQtbWbHwQ3Oko2LKBUhfj9vy2uqKe0/EUjOy2t6CS6E Kcu3XVY+5vKtBtqJVhqJjDruI6UklQyOgd/uSgiK9Q9jyRCZPiVcz4kDaFiWAXFXUY99ls vz9MOm1pcRiNMsNwS7VFh0SzBlEIuiw= 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-262-6cppOynUMiu_sR-jzO7qLA-1; Fri, 06 Dec 2019 17:13:53 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2C331107ACC4 for ; Fri, 6 Dec 2019 22:13:52 +0000 (UTC) Received: from redhat.com (ovpn-122-138.rdu2.redhat.com [10.10.122.138]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D95D60C80; Fri, 6 Dec 2019 22:13:51 +0000 (UTC) Date: Fri, 6 Dec 2019 17:13:48 -0500 From: Marek Polacek To: GCC Patches Cc: Jason Merrill Subject: [committed] Add test for c++/92451 Message-ID: <20191206221348.GR119925@redhat.com> MIME-Version: 1.0 User-Agent: Mutt/1.12.1 (2019-06-15) X-Mimecast-Spam-Score: 0 Content-Disposition: inline This was ICEing from r277865 to r278786. Tested on x86_64-linux, applying to trunk. 2019-12-06 Marek Polacek PR c++/92451 * g++.dg/overload/error4.C: New test. --- /dev/null +++ gcc/testsuite/g++.dg/overload/error4.C @@ -0,0 +1,6 @@ +// PR c++/92451 + +template struct Local {}; +void f() { + Local(int); // { dg-error "" } +}