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

Daniel Franke franke.daniel@gmail.com
Sun Jun 24 18:39:00 GMT 2007


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.
	

:ADDPATCH fortran:

2007-06-24  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/32467
	* openmp.c (resolve_omp_clauses): Emit error on allocatable components 
	in COPYIN, COPYPRIVATE, FIRSTPRIVATE, LASTPRIVATE and REDUCTION clauses.

2007-06-24  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/32467
	* gfortran.dg/gomp/allocatable_components_1.f90: New test.


Bootstrapped and 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: 2234 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070624/5c295447/attachment.bin>


More information about the Fortran mailing list