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, fortran] PR28660 - Spurious warning: 'ubound.6' is used uninitialized in this function


On Fri, Aug 11, 2006 at 09:53:46PM +0200, Paul Thomas wrote:
> 2006-08-11  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	PR fortran/28660
> 	* trans-decl.c (generate_expr_decls): New function.
> 	(generate_dependency_declarations): New function.
> 	(generate_local_decl): Call previous if not either a dummy or
> 	a declaration in an entry master.
> 
> 2006-08-11  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	PR fortran/28660
> 	* gfortran.dg/dependent_decls_1.f90: New test.


+ 	    case REF_SUBSTRING:
+ 	      generate_expr_decls (sym, ref->u.ss.start);
+ 	      generate_expr_decls (sym, ref->u.ss.start);
+ 	      break;

Is this correct?  Aren't you trying ref->u.ss.start twice?

I believe the patch is OK after you consider the above
question.

-- 
Steve


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