Closed
Description
Section 16.9.189 of Committee Draft 1539-1 of the Fortran 2015 standard describes a team_number
intrinsic function which takes an optional scalar argument of type team_type
"whose value identifies the current or an ancestor team." The result is a default integer scalar and "has the value −1 if the speci ed team is the initial team; otherwise, the result value is equal to the positive integer that identifies the specified team within its parent team." If the optional argument is absent, then the current team specified.
@afanfa I can take a stab at writing the library side. Could you write the compiler side?