https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109021
Bug ID: 109021 Summary: accept size parameter in extern C Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: muecker at gwdg dot de Target Milestone: --- A problem I encounter sometimes when using newer C headers in C++ is with functions that have array argument with a size parameter: extern "C" void foo(int N, char buf[N]); I think g++ should accept this in general or only for extern "C". At least for 1D arrays this should be easy as it could simply ignore the size and only emit a diagnostic with -pedantic.