https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88704
Bug ID: 88704 Summary: Accepts invalid program with [*] outside function prototype scope. 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): void f(a) int a[*]; { } int main() { } Compilation command line: gcc prog.c -std=c11 -pedantic-errors Observed behaviour: No error message outputed. Expected behaviour: An error message outputed. The program is invalid because [*] occurs outside function prototype scope. Note: Clang gives the expected error message.