From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61898 invoked by alias); 6 Jun 2017 16:51:22 -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 61885 invoked by uid 89); 6 Jun 2017 16:51:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Jun 2017 16:51:19 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1dIHhQ-0002tg-LK from joseph_myers@mentor.com ; Tue, 06 Jun 2017 09:51:20 -0700 Received: from digraph.polyomino.org.uk (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Jun 2017 17:51:17 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1dIHhG-0002Eh-Qm; Tue, 06 Jun 2017 16:51:10 +0000 Date: Tue, 06 Jun 2017 16:51:00 -0000 From: Joseph Myers To: Marek Polacek CC: GCC Patches Subject: Re: C PATCH to improve enum and struct redefinition diagnostic (PR c/79983) In-Reply-To: <20170606164828.GP3413@redhat.com> Message-ID: References: <20170606164828.GP3413@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-SW-Source: 2017-06/txt/msg00346.txt.bz2 On Tue, 6 Jun 2017, Marek Polacek wrote: > 2017-06-06 Marek Polacek > > PR c/79983 > * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of > ref. > (start_enum): Use the location of TYPE_STUB_DECL of enumtype. > > * gcc.dg/pr79983.c: New test. OK. -- Joseph S. Myers joseph@codesourcery.com