1 |
Updated (attached) patch and PR with FOrtran 2008 Standard support check via accessing imaginary part of complex number. |
2 |
|
3 |
This check is formaly as since GCC-9.0 there almost all planning Fortran 2008 Standart features were implemented. |
4 |
The version <sys-devel/gcc-9.0 are masked in portage tree. |
5 |
|
6 |
According to 1 the one of the recent implemented GCC-gfortran Fortran 2008 feature is |
7 |
"Accessing real and imaginary parts (since 9.0, 2018-11-01)" |
8 |
|
9 |
The "Contiguous attribute" (since 4.6, 2010-06-21, the is_contiguous intrinsic has been implemented on 2019-01-07) |
10 |
is more recent but harder to check. |
11 |
|
12 |
|
13 |
|
14 |
> I definitely must use another feature to check as -fcoarray=single is supported since GCC 4.6 while there are several Fortran features supported since GCC 9.0 :( |
15 |
> |
16 |
> 16.06.2022, 01:52, "Torokhov Sergey" <torokhov-s-a@××××××.ru>: |
17 |
> |
18 |
>> Currently the fortran-2.eclass Fortran compiler dialect is restricted with check of Fortran 2003 standard. |
19 |
>> Some packages could require to check at least Fortran 2008 support. |
20 |
>> |
21 |
>> The proposed attached patch offer to check Fortran 2008 compatibility via one of the new most notable feature - Coarrays support (parallel processing feature). |
22 |
>> Besides the new test file the current check require the passing of GCC (gfortran) compiler option `-fcoarray=single` to check Fortran 2008 compatibility. |
23 |
>> |
24 |
>> The same patch is available via GIthub pull request: https://github.com/gentoo/gentoo/pull/25920 |