This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/8754: Allows illegal code
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Fri, 29 Nov 2002 15:14:10 +0100
- Subject: Re: c/8754: Allows illegal code
- Bcc: Petter Reinholdtsen <petter dot reinholdtsen at usit dot uio dot no>
- References: <20021129140853.21690.qmail@sources.redhat.com>
> Not a bug.
> Nested functions are a GNU extension, see
> http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Nested-Functions.html
And function overloading for main() is well defined as well?
Reimplementing main() inside main() is a bug, and should be flagged as
such.