2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/66643
* io.c (match_dt_unit): Peek check for missing format.
* gfortran.fortran-torture/compile/arrayio.f90: Update test.
* gfortran.fortran-torture/compile/write.f90: Update test.
From-SVN: r240686
+2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/66643
+ * io.c (match_dt_unit): Peek check for missing format.
+
2016-09-30 Fritz Reese <fritzoreese@gmail.com>
PR fortran/77764
match_dt_unit (io_kind k, gfc_dt *dt)
{
gfc_expr *e;
+ char c;
if (gfc_match_char ('*') == MATCH_YES)
{
goto conflict;
dt->io_unit = default_unit (k);
+
+ c = gfc_peek_ascii_char ();
+ if (c == ')')
+ gfc_error_now ("Missing format with default unit at %C");
+
return MATCH_YES;
}
+2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/66643
+ * gfortran.fortran-torture/compile/arrayio.f90: Update test.
+ * gfortran.fortran-torture/compile/write.f90: Update test.
+
2016-09-30 Matthew Wawhab <matthew.wahab@arm.com>
* gcc.target/arm/fp16-aapcs-3.c: Replace arm_fp16_ok with
a(:, j) = (/ (i + (j - 1) * 5, i=1,5) /)
end do
- write (*) a
+ write (*,*) a
end program
! Program to test simple IO
program testwrite
- write (*) 1
- write (*) "Hello World"
+ write (*,*) 1
+ write (*,*) "Hello World"
end program