This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/8754: Allows illegal code


Synopsis: Allows illegal code

State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Fri Nov 29 06:08:52 2002
State-Changed-Why:
    Not a bug.
    Nested functions are a GNU extension, see
    http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Nested-Functions.html
    
    If you specify -pedantic on the command line, you'll get a warning:
    
    bug-gcc-double-main.c: In function `main':
    bug-gcc-double-main.c:3: warning: ISO C forbids nested functions

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8754


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]