This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71730] [5/6/7 Regression] ICE when character length specification uses an undefined variable
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Sep 2016 00:19:15 +0000
- Subject: [Bug fortran/71730] [5/6/7 Regression] ICE when character length specification uses an undefined variable
- Auto-submitted: auto-generated
- References: <bug-71730-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71730
--- Comment #5 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Thu Sep 29 00:18:44 2016
New Revision: 240608
URL: https://gcc.gnu.org/viewcvs?rev=240608&root=gcc&view=rev
Log:
2016-09-28 Steven G. Kargl <kargl@gcc.gnu.org>
backport from trunk
PR fortran/71730
* gfortran.dg/pr71730.f90: New test.
* gfortran.dg/bounds_check_strlen_2.f90: Fix invalid code.
* gfortran.dg/array_constructor_27.f03: Update dg-error message.
* gfortran.dg/array_constructor_26.f03: Ditto.
PR fortran/77612
* gfortran.dg/pr77612.f90: New test.
2016-09-28 Steven G. Kargl <kargl@gcc.gnu.org>
backport from trunk
PR fortran/71730
* decl.c (char_len_param_value): Check return value of
gfc_reduce_init_expr().
PR fortran/77612
* decl.c (char_len_param_value): Check parent namespace for
seen_implicit_none.
Added:
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr71730.f90
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr77612.f90
Modified:
branches/gcc-5-branch/gcc/fortran/ChangeLog
branches/gcc-5-branch/gcc/fortran/decl.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/array_constructor_26.f03
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/array_constructor_27.f03
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/bounds_check_strlen_2.f90