This is the mail archive of the gcc@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: gcc 4.1 regression for adjusted function declaration?



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


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