Skip to content

Commit 68ca76f

Browse files
committed
[flang][NFC] Document an intentional violation of the standard
The Fortran standard committees passed an "interp" request at their June 2024 meetings that is contrary to what every other Fortran compiler that I tried (6) does with an ambiguous case (parent component naming when the base type has been renamed via USE association). Document this case in flang/docs/Extensions.md as an intentional instance of non-conformance chosen for portability and better usability.
1 parent 4120907 commit 68ca76f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flang/docs/Extensions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ end
134134
implicitly simply appearing in an asynchronous data transfer statement,
135135
without the attribute being visible in the procedure's explicit
136136
interface.
137+
* When the name of an extended derived type's base type is the
138+
result of `USE` association with renaming, the name of the extended
139+
derived type's parent component is the new name by which the base
140+
is known in the scope of the extended derived type, not the original.
141+
This interpretation has usability advantages and is what six other
142+
Fortran compilers do, but is not conforming now that J3 approved an
143+
"interp" in June 2024 to the contrary.
137144

138145
## Extensions, deletions, and legacy features supported by default
139146

0 commit comments

Comments
 (0)