https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107583

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>:

https://gcc.gnu.org/g:57446d1bc9757ee1fb030600d38fa9487231f2a4

commit r14-1876-g57446d1bc9757ee1fb030600d38fa9487231f2a4
Author: David Malcolm <dmalc...@redhat.com>
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 <time.h> 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 <dmalc...@redhat.com>

Reply via email to