llvm / llvm/llvm-project

[flang] Implement F2023 TYPEOF and CLASSOF type specifiers

Open
#185,635 0 comments 0 reactions 1 assignee Claimed by @Ritanya-B-Bharadwaj View on GitHub
flang
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

The Fortran 2023 Standard extends declaration-type-spec with two new type specifiers:

TYPEOF ( data-ref )
CLASSOF ( data-ref )

These allow declarations to indirectly use the type of a previously-defined entity. CLASSOF additionally implies polymorphism.
More details in - https://github.com/llvm/llvm-project/blob/main/flang/docs/F202X.md#typeof-and-classof
This is marked as N in https://releases.llvm.org/21.1.0/tools/flang/docs/FortranStandardsSupport.html#fortran-2023

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.