This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17096] gcc-3.4.1 allows statements before declarations
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2004 08:51:20 -0000
- Subject: [Bug c/17096] gcc-3.4.1 allows statements before declarations
- References: <20040819083835.17096.metze@samba.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-08-19 08:51 -------
Subject: Re: New: gcc-3.4.1 allows statements before declarations
On Thu, 19 Aug 2004, metze at samba dot org wrote:
> even if I use -ansi (and -Wall -Wshadow -Werror-implicit-function-declaration
> -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings)
So use -pedantic or -Wdeclaration-after-statement.
We are always interested in improving the quality of the manual. Could
you let us know how the manual might be improved so that you would have
noticed the "Mixed Declarations" section documenting this extension, and
the documentation of -Wdeclaration-after-statement, before making this bug
report?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17096