This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR28660 - Spurious warning: 'ubound.6' is used uninitialized in this function
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 18 Aug 2006 12:22:20 -0700
- Subject: Re: [Patch, fortran] PR28660 - Spurious warning: 'ubound.6' is used uninitialized in this function
- References: <44DCE04A.1040604@wanadoo.fr>
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