[Patch] OpenMP/Fortran: Permit assumed-size arrays in uniform clause

Tobias Burnus tobias@codesourcery.com
Fri Jul 29 09:47:54 GMT 2022


Testcase wise, the run-time testcase libgomp.fortran/examples-4/simd-2.f90
checks essentially the same, except that it uses an array-descriptor array
(assumed shape) while this testcase uses an assumed-size array.

I decided for an extra compile-time only testcase, but it could be also be
moved to libgomp as run-time test or the other test could be extended to
also test assumed-size arrays.

The OpenMP examples document contains two testcases which now pass,
but are reject without this patch:
- SIMD/sources/SIMD.2.f90 (for OpenMP 4.0)
- SIMD/sources/linear_modifier.3.f90 (for OpenMP 5.2)

OK for mainline?

Tobias
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omp-uniform.diff
Type: text/x-patch
Size: 2011 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20220729/20c5fd97/attachment.bin>


More information about the Fortran mailing list