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: [patch c++]: Fix possible uninitialized variable


On Wed, Jul 14, 2010 at 01:52:20PM +0200, Paolo Carlini wrote:
> On 07/14/2010 12:26 PM, Kai Tietz wrote:
> > 2010-07-14  Kai Tietz
> >
> >           * method.c (synthesized_method_walk): Initialize
> >           check_vdtor by false.
> >
> > Tested for i686-pc-linux-gnu, i686-pc-mingw32, and x86_64-pc-mingw32.
> > Ok for apply?
> >   
> Frankly, I do not understand why you are proposing this change: at line
> 1007 check_vdtor is assigned false and there are no uses whatsoever
> before. Everything seems fine, and, by the way, the case of assign_p is
> quite similar. Are you seeing spurious warnings during the bootstrap?

That's because Jason fixed this yesterday:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162159
Before that it has been really uninitialized.

	Jakub


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