This is the mail archive of the gcc-patches@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: new build_function_type_list()


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


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