https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122523
Bug ID: 122523
Summary: Feature request: 202Y PURE and SIMPLE types
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: damian at archaeologic dot codes
Target Milestone: ---
In the next Fortran standard -- informally "Fortran 202Y", where Y = ~8 --
will add optional PURE and SIMPLE attributes for derived types (syntax: TYPE,
PURE :: foo_t; END TYPE). Fortran 202Y will allow allocatable, polymorphic
function results if and only if the result is of a PURE or SIMPLE type. These
features come with several new constraints. For example, a PURE or SIMPLE
type's FINAL subroutine must be PURE or SIMPLE, respectively.
Does the recent fix for pr78640 make this a good time to add the PURE and
SIMPLE type attributes? I'm imagining the pr78650 fix might have touched
similar parts of the compiler to those impacted by the new attributes.
The most up-to-date edits paper describing the new features is at
https://j3-fortran.org/doc/year/25/25-194r1.txt. Edits papers are the basis
for integrating the feature into the standard so the descriptions in the paper
are mature and and likely to be very close to what ends up in the standard.
--- Comment #1 from Damian Rouson <damian at archaeologic dot codes> ---
Oops. "pr78650" above was meant to be "78640"