This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: new build_function_type_list()
On Sat, Jun 29, 2002 at 08:51:28AM -0700, Aldy Hernandez wrote:
>
> > > + 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.
>
> how about:
>
> saveme = build_function_type (first, args);
> VA_CLOSE (p);
> return saveme;
Yes, that will work. I usually call the variable 'result'.
zw