fortran/
PR fortran/18993
* match.c (gfc_match_if): Don't explicitly skip optional whitespace.
(gfc_match_nullify): Make sure that ')' is in front of the end of
statement.
testsuite/
PR fortran/18993
* gfotran.dg/nullify_1.f: New test.
From-SVN: r92209
+2004-12-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ PR fortran/18993
+ * match.c (gfc_match_if): Don't explicitly skip optional whitespace.
+ (gfc_match_nullify): Make sure that ')' is in front of the end of
+ statement.
+
2004-12-14 Richard Henderson <rth@redhat.com>
* gfortran.h (gfc_expr.function.name): Make const.
return MATCH_YES;
}
- if (gfc_match (" then %t") == MATCH_YES)
+ if (gfc_match (" then%t") == MATCH_YES)
{
new_st.op = EXEC_IF;
new_st.expr = expr;
tail->expr = p;
tail->expr2 = e;
- if (gfc_match_char (')') == MATCH_YES)
+ if (gfc_match (" )%t") == MATCH_YES)
break;
if (gfc_match_char (',') != MATCH_YES)
goto syntax;
+2004-12-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ PR fortran/18993
+ * gfotran.dg/nullify_1.f: New test.
+
2004-12-15 Richard Henderson <rth@redhat.com>
* gcc.target/i386/i386.exp: New harness.
--- /dev/null
+C { dg-do compile }
+C PR 18993
+C we didn't match the end of statement following NULLIFY ()
+C this lead to weird error messages
+ subroutine ordern( )
+ real, pointer :: aux(:,:)
+C Nullify pointers
+ nullify(aux)
+C Set default sizes for order N arrays
+ end subroutine ordern
+