From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A8DA5385660C; Fri, 16 Jun 2023 00:59:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8DA5385660C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686877179; bh=HaEhOV+/psPqaTScefDgHWSMcixkHn23bJJXt1fR6hY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u+JWl/fNHTrrO/GlUesrDY2e2psMGXoul9KCU2g26b/7zoOSVlfHKKi/4PZk/YPcw 7BnVQ4TCowEDBepBPMLGQtowH9WVKa1By+7NpkBXQUn9bi064utUG4qsbIec9KksrM 4ED6cPX/frbJgCv8GXz5GA4gHJdq+92fUOcM/qC4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107583] Missing fixit for struct members (e.g. time_t, missing include) Date: Fri, 16 Jun 2023 00:59:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107583 --- Comment #4 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:57446d1bc9757ee1fb030600d38fa9487231f2a4 commit r14-1876-g57446d1bc9757ee1fb030600d38fa9487231f2a4 Author: David Malcolm Date: Thu Jun 15 20:56:41 2023 -0400 c: add name hints to c_parser_declspecs [PR107583] PR c/107583 notes that we weren't issuing a hint for struct foo { time_t mytime; /* missing include should trigger fixit */ }; in the C frontend. The root cause is that one of the "unknown type name" diagnostics was missing logic to emit hints, which this patch fixes. gcc/c/ChangeLog: PR c/107583 * c-parser.cc (c_parser_declspecs): Add hints to "unknown type name" error. gcc/testsuite/ChangeLog: PR c/107583 * c-c++-common/spellcheck-pr107583.c: New test. Signed-off-by: David Malcolm =