diff options
author | Tobias Burnus <burnus@net-b.de> | 2011-05-29 20:15:08 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2011-05-29 20:15:08 +0200 |
commit | 8a5c4899e8f57f09e288043984cc0f4584f17fc4 (patch) | |
tree | 6d2fbf1b69f77f9c491dee27d2731c9582c5f614 /gcc/fortran/trans-array.c | |
parent | 269e0e1853605002f06a19b0e7e5106d8d491631 (diff) | |
download | gcc-8a5c4899e8f57f09e288043984cc0f4584f17fc4.zip gcc-8a5c4899e8f57f09e288043984cc0f4584f17fc4.tar.gz gcc-8a5c4899e8f57f09e288043984cc0f4584f17fc4.tar.bz2 |
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
2011-05-29 Tobias Burnus <burnus@net-b.de>
Richard Guenther <rguenther@suse.de>
PR fortran/18918
* trans-types.c (gfc_get_nodesc_array_type): Don't mess with
the type's TREE_TYPE.
* trans-array.c (gfc_conv_array_ref): Use TYPE_MAIN_VARIANT.
* trans.c (gfc_build_array_ref): Ditto.
2011-05-29 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
* gfortran.dg/coarray_23.f90: New.
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r174410
Diffstat (limited to 'gcc/fortran/trans-array.c')
-rw-r--r-- | gcc/fortran/trans-array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index b2992f0..d83a7a9 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -2628,7 +2628,7 @@ gfc_conv_array_ref (gfc_se * se, gfc_array_ref * ar, gfc_symbol * sym, se->expr = build_fold_indirect_ref_loc (input_location, se->expr); /* Use the actual tree type and not the wrapped coarray. */ - se->expr = fold_convert (TREE_TYPE (TREE_TYPE (se->expr)), se->expr); + se->expr = fold_convert (TYPE_MAIN_VARIANT (TREE_TYPE (se->expr)), se->expr); return; } |