2016-12-22 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/78239
* decl.c (char_len_param_value): Also check for -fimplicit-none
when determining if implicit none is in force.
2016-12-22 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/78239
* gfortran.dg/fimplicit_none_1.f90: New test.
* gfortran.dg/fimplicit_none_2.f90: New test
From-SVN: r243895
+2016-12-22 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ Backport from trunk
+ PR fortran/78239
+ * decl.c (char_len_param_value): Also check for -fimplicit-none
+ when determining if implicit none is in force.
+
2016-12-04 Janus Weil <janus@gcc.gnu.org>
Backport from trunk
if (!t && e->ts.type == BT_UNKNOWN
&& e->symtree->n.sym->attr.untyped == 1
- && (e->symtree->n.sym->ns->seen_implicit_none == 1
+ && (flag_implicit_none
+ || e->symtree->n.sym->ns->seen_implicit_none == 1
|| e->symtree->n.sym->ns->parent->seen_implicit_none == 1))
{
gfc_free_expr (e);
+2016-12-22 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ Backport from trunk
+ PR fortran/78239
+ * gfortran.dg/fimplicit_none_1.f90: New test.
+ * gfortran.dg/fimplicit_none_2.f90: New test.
+
2016-12-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/78731
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fimplicit-none" }
+subroutine s(n) ! { dg-error "has no IMPLICIT type" }
+ character(n) :: c ! { dg-error "Scalar INTEGER expression expected" }
+ c = 'c' ! { dg-error "has no IMPLICIT type" }
+end
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fimplicit-none" }
+! PR fortran/78239 - used to ICE
+program p
+ character(*), parameter :: z(2) = [character(n) :: 'x', 'y'] ! { dg-error "Scalar INTEGER expression expected" }
+end