This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.1 regression for adjusted function declaration?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Joern RENNECKE <joern dot rennecke at st dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 16 Feb 2006 12:59:15 -0500
- Subject: Re: gcc 4.1 regression for adjusted function declaration?
- References: <43F4BBEE.5000005@st.com>
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