public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112954] New: Spelling hint for typos in parameter types in function prototypes
@ 2023-12-11  9:10 fw at gcc dot gnu.org
  2023-12-11 16:19 ` [Bug c/112954] " pinskia at gcc dot gnu.org
  2023-12-11 16:22 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: fw at gcc dot gnu.org @ 2023-12-11  9:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112954
           Summary: Spelling hint for typos in parameter types in function
                    prototypes
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fw at gcc dot gnu.org
  Target Milestone: ---

This is used to be accepted with a warning as a function declaration without a
prototype, treating “int32t” as an untyped parameter name rather than a type:

void function (int32t);

In GCC 14, this is now a declaration-missing-parameter-type permerror. However,
the wording of the diagnostic did not change. We could provide a spelling hint
or header inclusion hint for such errors.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-11 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-11  9:10 [Bug c/112954] New: Spelling hint for typos in parameter types in function prototypes fw at gcc dot gnu.org
2023-12-11 16:19 ` [Bug c/112954] " pinskia at gcc dot gnu.org
2023-12-11 16:22 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).