2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
PR fortran/77351
* frontend-passes.c (remove_trim,combine_array_constructor): Check for
NULL pointer.
2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
PR fortran/77351
* gfortran.dg/pr77351.f90: New test.
From-SVN: r239763
+2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/77351
+ * frontend-passes.c (remove_trim,combine_array_constructor): Check for
+ NULL pointer.
+
2016-08-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/77358
bool ret;
ret = false;
+ if (!rhs)
+ return ret;
/* Check for a // b // trim(c). Looping is probably not
necessary because the parser usually generates
op1 = e->value.op.op1;
op2 = e->value.op.op2;
+ if (!op1 || !op2)
+ return false;
+
if (op1->expr_type == EXPR_ARRAY && op2->rank == 0)
scalar_first = false;
else if (op2->expr_type == EXPR_ARRAY && op1->rank == 0)
+2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/77351
+ * gfortran.dg/pr77351.f90: New test.
+
2016-08-25 Marek Polacek <polacek@redhat.com>
* c-c++-common/Wlogical-not-parentheses-2.c: New test.
--- /dev/null
+! { dg-do compile }
+program p
+ integer :: z(4) = [1, 2, 3, 4]
+ print *, any(shape(z) /= [4,1]) ! { dg-error "shape for elemental binary" }
+end
+! { dg-excess-errors "operands are incommensurate" }