Commit 45aae8f2 by Paul Brook Committed by Paul Brook

expr.c (check_inquiry): Remove bogus tests.

	* expr.c (check_inquiry): Remove bogus tests.
testsuite/
	* gfortran.fortran-torture/compile/inquiry_1.f90: New test.

From-SVN: r82177
parent 6972898c
2004-05-25 Paul Brook <paul@codesourcery.com>
* expr.c (check_inquiry): Remove bogus tests.
2004-05-23 Paul Brook <paul@codesourcery.com>
PR fortran/13773
......
......@@ -1273,15 +1273,6 @@ check_inquiry (gfc_expr * e)
int i;
/* These functions must have exactly one argument. */
if (e->value.function.actual == NULL
|| e->value.function.actual->next != NULL)
return FAILURE;
if (e->value.function.name != NULL
&& e->value.function.name[0] != '\0')
return FAILURE;
name = e->symtree->n.sym->name;
for (i = 0; inquiry_function[i]; i++)
......
2004-05-25 Paul Brook <paul@codesourcery.com>
* gfortran.fortran-torture/compile/inquiry_1.f90: New test.
2004-05-23 Mark Mitchell <mark@codesourcery.com>
PR c++/15165
......
! Check that inquiry functions are allowed as specification expressions.
subroutine inquiry(x1)
implicit none
real, dimension(1:), intent(out) :: x1
real, dimension(1:size(x1)) :: x3
x3 = 0
x1 = x3
end subroutine
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment