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()


> > +   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;

??
aldy


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