On Feb 16, 2006, at 12:52 PM, Joern RENNECKE wrote:
The following code gives an error with gcc 4.1: struct tag; extern void f (struct tag a[1]); gcc 3.2.3 compiles this code without complaint.
GCC before 4.0.0 was incorrect at not rejecting this code. See PR 19333. Use -pedantic with 3.2.3 and you will get a warning. Also see: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00948.html Thanks, Andrew Pinski