This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] PR32467 - structure containing allocatable array is wrongly accepted
- From: Tobias Burnus <burnus at net-b dot de>
- To: Daniel Franke <franke dot daniel at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, jakub at gcc dot gnu dot org
- Date: Sun, 24 Jun 2007 20:54:26 +0200
- Subject: Re: [fortran, patch] PR32467 - structure containing allocatable array is wrongly accepted
- References: <200706242039.07430.franke.daniel@gmail.com>
Daniel Franke wrote:
> As allocatable components in derived types are not part of F95, OpenMP v2.5
> does not allow such in clauses where allocatable arrays are not allowed.
> These clauses are: COPYIN, COPYPRIVATE, FIRSTPRIVATE, LASTPRIVATE, REDUCTION.
>
> Bootstrapped and regression tested on i686-pc-linux-gnu. Ok for trunk?
>
Ok - but wait a few days before checking in to give others - esp. Jakub
- time to comment.
For the others: For more information, see the PR and thread starting at
http://www.openmp.org/pipermail/omp/2007/000921.html
http://www.openmp.org/pipermail/omp/2007/000924.html
(Currently the links are boring as no one has yet replied to the omp
list to Daniel's and my question.)
Thanks to Lawence F Meadows from Intel for pointing out that OpenMP 2.5
has no allocatable-components restriction since it is based on Fortran
95 (as Daniel already mentioned). OpenMP 3.0 may allow both allocatable
variables and variables with allocatable components, but let's wait for
the draft or release of the standard before worrying how to implement it.
Tobias