This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: new build_function_type_list()
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Jun 2002 22:37:43 -0700
- Subject: Re: new build_function_type_list()
- References: <20020628203904.GA9501@redhat.com>
On Fri, Jun 28, 2002 at 01:39:04PM -0700, Aldy Hernandez wrote:
> + VA_OPEN (p, first);
> + VA_FIXEDARG (p, tree, first);
...
> + VA_CLOSE (p);
> +
> + return build_function_type (first, args);
This is buggy. In K+R mode, the variable 'first' goes out of scope at
VA_CLOSE. I haven't yet been able to think of a way to get the
compiler to catch this in C89 mode.
zw