diff options
author | Tobias Burnus <burnus@net-b.de> | 2011-05-31 20:40:55 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2011-05-31 20:40:55 +0200 |
commit | d73b65b6dbed146ca88c93a183eae1cbe7b430b1 (patch) | |
tree | 4b923cc8e159fecaef06728ba93216f4f175820c /gcc/fortran | |
parent | 9f3761c527c003969c4f18497876c4d18b5f2305 (diff) | |
download | gcc-d73b65b6dbed146ca88c93a183eae1cbe7b430b1.zip gcc-d73b65b6dbed146ca88c93a183eae1cbe7b430b1.tar.gz gcc-d73b65b6dbed146ca88c93a183eae1cbe7b430b1.tar.bz2 |
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
2011-05-31 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
* trans-array.c (gfc_trans_dummy_array_bias): Handle
cobounds of assumed-shape arrays.
2011-05-31 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
* gfortran.dg/coarray/dummy_1.f90: New.
From-SVN: r174504
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/trans-array.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ba7d7be..b962ff5 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,6 +1,12 @@ 2011-05-31 Tobias Burnus <burnus@net-b.de> PR fortran/18918 + * trans-array.c (gfc_trans_dummy_array_bias): Handle + cobounds of assumed-shape arrays. + +2011-05-31 Tobias Burnus <burnus@net-b.de> + + PR fortran/18918 * resolve.c (resolve_fl_variable): Handle static coarrays with non-constant cobounds. diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 0c6c638..c7aeadb 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -5232,6 +5232,8 @@ gfc_trans_dummy_array_bias (gfc_symbol * sym, tree tmpdesc, } } + gfc_trans_array_cobounds (type, &init, sym); + /* Set the offset. */ if (TREE_CODE (GFC_TYPE_ARRAY_OFFSET (type)) == VAR_DECL) gfc_add_modify (&init, GFC_TYPE_ARRAY_OFFSET (type), offset); |