new build_function_type_list()

Zack Weinberg zack@codesourcery.com
Fri Jun 28 23:31:00 GMT 2002


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



More information about the Gcc-patches mailing list