[Bug fortran/104309] Elemental character function should not return array of character variables of different lengths.
anlauf at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 31 21:18:41 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104309
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Priority|P3 |P4
Last reconfirmed| |2022-01-31
Version|fortran-dev |12.0
--- Comment #1 from anlauf at gcc dot gnu.org ---
I don't think the wording of g95 is explaining what is wrong.
Browsing F2018 I saw:
C15103 In the specification-expr that specifies a type parameter value of
the result of an elemental function, an object designator with a dummy
argument of the function as the base object shall appear only as the
subject of a specification inquiry (10.1.11), ...
And 10.1.11 has:
A specification inquiry is a reference to
(1) an intrinsic inquiry function other than PRESENT,
(2) a type parameter inquiry (9.4.5),
(3) ...
TRIM and LEN_TRIM are not intrinsic inquiry functions.
More information about the Gcc-bugs
mailing list