[Bug fortran/52370] [4.7/4.8 Regression] Spurious "may be used uninitialized" warning for check of optional argument
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 6 08:01:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52370
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 6 08:00:49 2014
New Revision: 208367
URL: http://gcc.gnu.org/viewcvs?rev=208367&root=gcc&view=rev
Log:
Backport from mainline
2014-02-11 Jakub Jelinek <jakub@redhat.com>
PR fortran/52370
* trans-decl.c (gfc_build_dummy_array_decl): Set TREE_NO_WARNING
on decl if sym->attr.optional.
* gfortran.dg/pr52370.f90: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/pr52370.f90
Modified:
branches/gcc-4_8-branch/gcc/fortran/ChangeLog
branches/gcc-4_8-branch/gcc/fortran/trans-decl.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list