From patchwork Fri Feb 12 04:20:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 582091 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 103E3140BFC for ; Fri, 12 Feb 2016 15:21:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=j9kP2yRy; dkim-atps=neutral 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; q=dns; s=default; b=yaev61tEfz4e eN9RuV69X//m7CzWfQAtsY6jqubutfXBxZiYbkmj5PjuJd6BNFN71sUHLvIvNyfo /CFIHxBtBqDf6kkArsTT+rpB97JhFqFj9cgJ5a9Ntne6P+dJ9RYSaoG2TPW8vDkf KGYWKuWim6bwJvTj1Ez8QpqYjXejJRA= 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; s=default; bh=G1JHp8pTOHrJs9b6BV eM5sFo39I=; b=j9kP2yRywFOsYAu1ncB+0/fj61nKuhP9aWp/iaaAno0Kz+O4Oo NwIDfq07jEtmAp9eq7MHztjpIzRfIOhfeFWjTTfFG1Dv+S3sxfL7Gxr3dyyQSX9w TYkdWBswXfRTl3ZdMxmAOQ98aV7USac3i0CMbX6k1OdOluWGLtJo8/bSU= Received: (qmail 13650 invoked by alias); 12 Feb 2016 04:20:57 -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 13535 invoked by uid 89); 12 Feb 2016 04:20:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-languages-length:899 X-HELO: mail-qg0-f42.google.com Received: from mail-qg0-f42.google.com (HELO mail-qg0-f42.google.com) (209.85.192.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 12 Feb 2016 04:20:54 +0000 Received: by mail-qg0-f42.google.com with SMTP id y9so55054869qgd.3 for ; Thu, 11 Feb 2016 20:20:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pxoI6/bhGc+82kjebx26juGOFIs8rZykIGj/xbA94gc=; b=ZeFmVQa/B3i2S5sv81sF2H4eNF1MqUMDr9qKqn4JeNABfuiYQIUVt7wgVyNRneJm3u TdJwUXjOhWsS2aDc96/s+eA+wdlooCByKMdY3JQnv+nrMTxX8coThJY0AmrfV9qmqU8K e/QDXoldBAZFwnHC5k4EKaYfDYi1Wc7wp7970IV7ye7Py4I6G6ApbN2Si6HCF/QFJ3DC KlSSVigZUYG55yvpWPv16r8+yFm3LYM9fJna3YoJYkCiY3QMtfLwbCi0w30XwaeUCB+n pUYdoNjIEzG7XVUfseKbBxl7/mwLxRcMmKxaSQdEQNye/RIC+pr3BJLCDi9tyxcWU3SB xeCA== X-Gm-Message-State: AG10YOSARiQgZuihnD3NvRhT0C2GoL+WuLhpCDz6bd49/PcBIMQqwhIZtlbooUXCxzvQww== X-Received: by 10.140.91.109 with SMTP id y100mr60056680qgd.42.1455250851633; Thu, 11 Feb 2016 20:20:51 -0800 (PST) Received: from localhost.localdomain (ool-4353abbc.dyn.optonline.net. [67.83.171.188]) by smtp.gmail.com with ESMTPSA id t72sm4859145qkl.11.2016.02.11.20.20.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Feb 2016 20:20:50 -0800 (PST) From: Patrick Palka To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka Subject: [PATCH] Add PR c++/11814 test case to testsuite Date: Thu, 11 Feb 2016 23:20:44 -0500 Message-Id: <1455250844-14720-1-git-send-email-patrick@parcs.ath.cx> Hi Jason, Your recent fix for PR c++/10200 seems to have fixed this longstanding PR too. Should I add its test case to the testsuite and close the PR? gcc/testsuite/ChangeLog: PR c++/11814 * g++.dg/lookup/template4.C: New test. --- gcc/testsuite/g++.dg/lookup/template4.C | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/lookup/template4.C diff --git a/gcc/testsuite/g++.dg/lookup/template4.C b/gcc/testsuite/g++.dg/lookup/template4.C new file mode 100644 index 0000000..53030d6 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/template4.C @@ -0,0 +1,16 @@ +// PR c++/11814 + +template struct A +{ + template void foo(); +}; + +template struct B +{ + template void foo() + { + A* p; + p->foo(); // { dg-error "" } + } +}; +