[Patch, fortran] PR47592 - Multiple function invocation with ALLOCATE (SOURCE=REPEAT('x',bar()))

Paul Richard Thomas paul.richard.thomas@gmail.com
Sun Feb 6 14:24:00 GMT 2011


Dear All,

Sending        gcc/fortran/ChangeLog
Sending        gcc/fortran/trans-stmt.c
Sending        gcc/testsuite/ChangeLog
Adding         gcc/testsuite/gfortran.dg/allocate_with_source_1.f90
Transmitting file data ....
Committed revision 169862.

>> That's mostly unchanged from previous version, but couldn't one replace it
>> by a simple "if (gfc_expr_attr (expr).allocatable)"? I think gfc_expr_attr
>> does not always do the right thing (regarding when to ignore and not ignore
>> array/substring refs), but I think here it does.
>

With this suggestion - thanks.

Cheers

Paul



More information about the Gcc-patches mailing list