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]

[Bug c/17096] gcc-3.4.1 allows statements before declarations


------- 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


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