From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22536 invoked by alias); 3 Dec 2015 14:37:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 22304 invoked by uid 89); 3 Dec 2015 14:37:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 03 Dec 2015 14:36:58 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4V07-0006PY-BO for gcc-patches@gcc.gnu.org; Thu, 03 Dec 2015 09:36:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4V07-0006PG-6v for gcc-patches@gcc.gnu.org; Thu, 03 Dec 2015 09:36:51 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 7F5C3C00075C for ; Thu, 3 Dec 2015 14:36:50 +0000 (UTC) Received: from c64.redhat.com (vpn-235-143.phx2.redhat.com [10.3.235.143]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB3Eajdi027193; Thu, 3 Dec 2015 09:36:49 -0500 From: David Malcolm To: Jason Merrill Cc: gcc-patches@gcc.gnu.org, David Malcolm Subject: [PATCH 05/10] Fix location of dg-error within g++.dg/template/pr64100.C Date: Thu, 03 Dec 2015 14:37:00 -0000 Message-Id: <1449154548-43964-6-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1449154548-43964-1-git-send-email-dmalcolm@redhat.com> References: <565627A0.6040107@redhat.com> <1449154548-43964-1-git-send-email-dmalcolm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00447.txt.bz2 Here's what it now emits (if caret-printing were enabled): g++.dg/template/pr64100.C: In instantiation of =E2=80=98class foo=E2= =80=99: g++.dg/template/pr64100.C:8:16: required from here g++.dg/template/pr64100.C:5:41: error: invalid use of incomplete type =E2= =80=98class foo=E2=80=99 static_assert(noexcept(((foo *)1)->~foo()), ""); // { dg-error "incomp= lete type" } ~~~~~~~~~~~~~^~~ g++.dg/template/pr64100.C:3:27: note: definition of =E2=80=98class foo= =E2=80=99 is not complete until the closing brace template struct foo // { dg-message "note" } ^~~ gcc/testsuite/ChangeLog: * g++.dg/template/pr64100.C: Update location of dg-error directive. --- gcc/testsuite/g++.dg/template/pr64100.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/template/pr64100.C b/gcc/testsuite/g++.dg= /template/pr64100.C index 493849f..051800c 100644 --- a/gcc/testsuite/g++.dg/template/pr64100.C +++ b/gcc/testsuite/g++.dg/template/pr64100.C @@ -1,8 +1,8 @@ // { dg-do compile { target c++11 } } =20 template struct foo // { dg-message "note" } -{ // { dg-error "incomplete type" } - static_assert(noexcept(((foo *)1)->~foo()), ""); +{ + static_assert(noexcept(((foo *)1)->~foo()), ""); // { dg-error "incomp= lete type" } };=20 =20 template class foo; --=20 1.8.5.3