[fortran, patch] PR32467 - structure containing allocatable array is wrongly accepted

Daniel Franke franke.daniel@gmail.com
Mon Jun 25 18:50:00 GMT 2007


On Sunday 24 June 2007 21:25:24 Jakub Jelinek wrote:

> But it would be helpful if you could cover also all the other clauses
> in testcases (COPYPRIVATE, FIRSTPRIVATE, LASTPRIVATE and REDUCTION).
> Especially because COPYIN resp. COPYPRIVATE are handled in different
> code from the other clauses.

Jakub,

attached patch has a testcase that tests all clauses. While preparing it, I 
found that the REDUCTION-clause allows for intrinsic types only (OpenMp v2.5, 
section 2.8.3.6, Restrictions), so I excluded the "has allocatable 
components"-error from REDUCTION since the "must be of intrinsic type"-error 
is more general.

Again, regression tested on i686-pc-linux-gnu. Ok for trunk?

Regards
	Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32467.f90
Type: text/x-fortran
Size: 3864 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070625/bdb2ba8c/attachment.bin>


More information about the Fortran mailing list