This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,Fortran] Coarrays 8/n: Add intrinsics (part 1) (PR 18918)


Am 14.04.2010 03:45, schrieb Jerry DeLisle:
> On 04/10/2010 01:47 AM, Tobias Burnus wrote:
>> Additionally, it adds THIS_IMAGE(coarray[, dim]), IMAGE_INDEX(coarray,
>> sub), UCOBOUND(coarray[, dim) and LCOBOUND(coarray[, dim]) for the case
>> that the cobounds are known at compile time.
> This OK before the other one.

Thanks for the review. I have also included the following patch to avoid
a segfault (e is *known* to be NULL while array is known not to be NULL).

Committed as Rev. 158292.

Tobias

diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c
index 8e8e125..1838c00 100644
--- a/gcc/fortran/simplify.c
+++ b/gcc/fortran/simplify.c
@@ -3058,7 +3058,7 @@ gfc_simplify_lcobound (gfc_expr *array, gfc_expr
*dim, gfc_expr *kind)
     return e;
 
   gfc_error ("Not yet implemented: LCOBOUND for coarray with non-constant "
-            "cobounds at %L", &e->where);
+            "cobounds at %L", &array->where);
   return &gfc_bad_expr;
 }
 
@@ -5561,7 +5561,7 @@ gfc_simplify_ucobound (gfc_expr *array, gfc_expr
*dim, gfc_expr *kind)
     return e;
 
   gfc_error ("Not yet implemented: UCOBOUND for coarray with non-constant "
-            "cobounds at %L", &e->where);
+            "cobounds at %L", &array->where);
   return &gfc_bad_expr;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]