This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41624] New: RFE: -fno-nested-functions
- From: "ajax at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2009 18:54:55 -0000
- Subject: [Bug c/41624] New: RFE: -fno-nested-functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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