Nested functions in C are a serious misfeature, for any number of reasons (some of which are even in the manual). They should be something a project should be able to ban the use of at the language level, without forcing a switch to strict non-gnu mode.
Also, unlike most g89 language features, they seriously impede the ability of the parser to tell you where syntax errors occur. As it is, a missing } doesn't get noticed until the end of the compilation unit; non-nested-function dialects of C can fail at exactly the nested function declaration. -- Summary: RFE: -fno-nested-functions Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ajax at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41624