2018-03-28 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85084
Backport from trunk.
* frontend-passes.c (gfc_run_passes): Do not run front-end
optimizations if a previous error occurred.
2018-03-28 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85084
Backport from trunk.
* gfortran.dg/matmul_rank_1.f90: New test.
From-SVN: r258927
+2018-03-28 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/85084
+ Backport from trunk.
+ * frontend-passes.c (gfc_run_passes): Do not run front-end
+ optimizations if a previous error occurred.
+
2018-03-20 Steven G. Kargl <kargl@gcc.gnu.org>
ChangeLog entry for r258698
PR fortran/85001
* interface.c (symbol_rank): Remove bogus null pointer check that
- crept in when translating a ternary operator into an if-else
+ crept in when translating a ternary operator into an if-else
constructor.
2018-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
doloop_list.release ();
int w, e;
+ gfc_get_errors (&w, &e);
+ if (e > 0)
+ return;
+
if (flag_frontend_optimize)
{
optimize_namespace (ns);
expr_array.release ();
}
- gfc_get_errors (&w, &e);
- if (e > 0)
- return;
-
if (flag_realloc_lhs)
realloc_strings (ns);
}
+2018-03-28 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/85084
+ Backport from trunk.
+ * frontend-passes.c (gfc_run_passes): Do not run front-end
+ optimizations if a previous error occurred.
+
2018-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Backport from mainline
--- /dev/null
+! { dg-do compile }
+! { dg-additional-options "-ffrontend-optimize" }
+! PR 85044 - used to die on allocating a negative amount of memory.
+! Test case by Gerhard Steinmetz.
+program p
+ real :: a(3,3) = 1.0
+ real :: b(33)
+ b = matmul(a, a) ! { dg-error "Incompatible ranks" }
+end