[Patch, Fortran] PR33178 - Allow integer to elemental functions with -std=f95

Tobias Burnus burnus@net-b.de
Fri Aug 24 23:14:00 GMT 2007


:ADDPATCH fortran:

This patch does not add a new check but only fixes an existing test.

To make reviewing easier: The function contains a few lines up:

  flag = 0;

  for (actual = expr->value.function.actual; actual; actual = actual->next)
    if (actual->expr != NULL)
      flag |= (actual->expr->ts.type != BT_INTEGER
               && actual->expr->ts.type != BT_CHARACTER);

(Actually, before this patch "flag" was otherwise unused!)


gfortran 4.2 is not affected thus this is a regression.

Regression tested on x86-64. Ok for the trunk?

Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elemental.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070824/b3d07df2/attachment.ksh>


More information about the Fortran mailing list