re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])

2011-04-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * trans-intrinsic.c (gfc_conv_intrinsic_function): Fix
        call for this_image.

From-SVN: r172060
This commit is contained in:
Tobias Burnus 2011-04-06 20:30:58 +02:00 committed by Tobias Burnus
parent 6eb87b330f
commit 7b7c0f2a21
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-04-06 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
* trans-intrinsic.c (gfc_conv_intrinsic_function): Fix
call for this_image.
2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
* trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Use

View File

@ -6260,7 +6260,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr)
break;
case GFC_ISYM_THIS_IMAGE:
if (expr->value.function.actual)
if (expr->value.function.actual->expr)
conv_intrinsic_cobound (se, expr);
else
trans_this_image (se, expr);