From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 75C1E384406B for ; Tue, 22 Nov 2022 23:05:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 75C1E384406B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,185,1665475200"; d="scan'208";a="87872301" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 22 Nov 2022 15:05:41 -0800 IronPort-SDR: IXFLekaSfWOsW0ypPERPxCxS/cHOEPt4al8tAdok5dNAvPD8jtxAflI/FtZ5a2708ailaSrP7R P31K3vmYHDzrkcCnmjAzBJnZCfvHggE95Q+cu56bok2vOBQohUfuQle1ZmFXE8+GXUvD5bbROu mTMwUsX7OfursQEnZvFUIAWOcH6sx3d0XO+kMeR186LkM/mI173UXtBS0nf+9p53unmZp4RBgQ /heagVSvTxzyBASy8xrSOfReGi/oPjtxUyJRYYEzblpN3MTaVhovhHz1pdrj/guUWZDhmrfdQX 6tI= Date: Tue, 22 Nov 2022 23:05:36 +0000 From: Joseph Myers To: Florian Weimer CC: Subject: Re: [PATCH] c: Propagate erroneous types to declaration specifiers [PR107805] In-Reply-To: <87cz9fqixe.fsf@oldenburg.str.redhat.com> Message-ID: <5350a633-56bb-cb4e-5e93-e6dce4b92a1@codesourcery.com> References: <87cz9fqixe.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3109.9 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 22 Nov 2022, Florian Weimer via Gcc-patches wrote: > Without this change, finish_declspecs cannot tell that whether there > was an erroneous type specified, or no type at all. This may result > in additional diagnostics for implicit ints, or missing diagnostics > for multiple types. > > PR c/107805 > > gcc/c/ > * c-decl.cc (declspecs_add_type): Propagate error_mark_bode > from type to specs. > > gcc/testsuite/ > * gcc.dg/pr107805-1.c: New test. > * gcc.dg/pr107805-1.c: Likewise. OK. -- Joseph S. Myers joseph@codesourcery.com