https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88720
Bug ID: 88720 Summary: Strange error message about nested function declared but not defined when using inline. Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Test case (prog.c): static void f(); int main() { inline void f(); } Compilation command line: gcc prog.c -Wall -Wextra -std=c11 -pedantic-errors Observed behaviour: The following error message was outputed: error: nested function 'f' declared but never defined Expected behaviour: No error message outputed. Note: Clang accepts the program without any error message outputed.