|
| 1 | +# C Standard Support |
| 2 | + |
| 3 | +Refer to the [Clang C status page](https://clang.llvm.org/c_status.html) for details on C standard support. |
| 4 | + |
| 5 | +# C++ Standard Support |
| 6 | + |
| 7 | +Refer to the [Clang C++ status page](https://clang.llvm.org/cxx_status.html) for details on C++ standard support. |
| 8 | + |
| 9 | +# Fortran Standards Support |
| 10 | + |
| 11 | +This section summarizes Fortran standards support in Flang. The information is only provided as a guideline. The |
| 12 | +TODOs/Not Yet Implemented messages emitted by the compiler for unimplemented features should be treated as authoritative. |
| 13 | + |
| 14 | +The standards support information is provided as a table with three columns that are self explanatory. The Status column uses |
| 15 | +the letters **P**, **Y**, **N** for the implementation status: |
| 16 | +- **P** : When the implementation is incomplete for a few cases |
| 17 | +- **Y** : When the implementation is complete |
| 18 | +- **N** : When the implementation is absent |
| 19 | + |
| 20 | +Note: No distinction is made between the support in the Parser/Semantics and MLIR or Lowering support. |
| 21 | + |
| 22 | +## Fortran 2023 |
| 23 | +See [this document](https://github.com/llvm/llvm-project/blob/main/flang/docs/F202X.md) for a brief discussion about the new features in Fortran 2023. The following table summarizes the |
| 24 | +status of all important Fortran 2023 features. |
| 25 | + |
| 26 | +| Feature | Status | Comments | |
| 27 | +|------------------------------------------------------------|--------|---------------------------------------------------------| |
| 28 | +| Allow longer statement lines and overall statement length | Y | | |
| 29 | +| Automatic allocation of lengths of character variables | N | | |
| 30 | +| The specifiers typeof and classof | N | | |
| 31 | +| Conditional expressions and arguments | N | | |
| 32 | +| More use of boz constants | P | All usages other than enum are supported | |
| 33 | +| Intrinsics for extracting tokens from a string | N | | |
| 34 | +| Intrinsics for Trig functions that work in degrees | N | | |
| 35 | +| Intrinsics for Trig functions that work in half revolutions| N | | |
| 36 | +| Changes to system_clock | N | | |
| 37 | +| Changes for conformance with the new IEEE standard | Y | | |
| 38 | +| Additional named constants to specify kinds | Y | | |
| 39 | +| Extensions for c_f_pointer intrinsic | N | | |
| 40 | +| Procedures for converting between fortran and c strings | N | | |
| 41 | +| The at edit descriptor | N | | |
| 42 | +| Control over leading zeros in output of real values | N | | |
| 43 | +| Extensions for Namelist | N | | |
| 44 | +| Allow an object of a type with a coarray ultimate component to be an array or allocatable | N | | |
| 45 | +| Put with Notify | N | | |
| 46 | +| Error conditions in collectives | N | | |
| 47 | +| Simple procedures | N | | |
| 48 | +| Using integer arrays to specify subscripts | N | | |
| 49 | +| Using integer arrays to specify rank and bound of an array | N | | |
| 50 | +| Using an integer constant to specify rank | N | | |
| 51 | +| Reduction specifier for do concurrent | P | Syntax is accepted | |
| 52 | +| Enumerations | N | | |
| 53 | + |
| 54 | +## Fortran 2018 |
| 55 | +All features except those listed in the following table are supported. Almost all of the unsupported features are related to |
| 56 | +the multi-image execution. |
| 57 | + |
| 58 | +| Feature | Status | Comments | |
| 59 | +|------------------------------------------------------------|--------|---------------------------------------------------------| |
| 60 | +| Asynchronous communication | P | Syntax is accepted | |
| 61 | +| Teams | N | | |
| 62 | +| Image failure | P | stat_failed_image is added | |
| 63 | +| Form team statement | N | | |
| 64 | +| Change team construct | N | | |
| 65 | +| Coarrays allocated in teams | N | | |
| 66 | +| Critical construct | N | | |
| 67 | +| Lock and unlock statements | N | | |
| 68 | +| Events | N | | |
| 69 | +| Sync team construct | N | | |
| 70 | +| Image selectors | N | | |
| 71 | +| Intrinsic functions get_team and team_number | N | | |
| 72 | +| Intrinsic function image_index | N | | |
| 73 | +| Intrinsic function num_images | N | | |
| 74 | +| Intrinsic function this_image | N | | |
| 75 | +| Intrinsic move_alloc extensions | P | | |
| 76 | +| Detecting failed and stopped images | N | | |
| 77 | +| Collective subroutines | N | | |
| 78 | +| New and enhanced atomic subroutines | N | | |
| 79 | +| Failed images and stat= specifiers | N | | |
| 80 | +| Intrinsic function coshape | N | | |
| 81 | + |
| 82 | +## Fortran 2008 |
| 83 | +All features except those listed in the following table are supported. |
| 84 | + |
| 85 | +| Feature | Status | Comments | |
| 86 | +|------------------------------------------------------------|--------|---------------------------------------------------------| |
| 87 | +| Coarrays | N | Lowering and runtime support is not implemented | |
| 88 | +| do concurrent | P | Sequential execution works. Parallel support in progress| |
| 89 | +| Internal procedure as an actual argument or pointer target | Y | Current implementation requires stack to be executable. See [Proposal](https://github.com/llvm/llvm-project/blob/main/flang/docs/InternalProcedureTrampolines.md) | |
| 90 | + |
| 91 | +## Fortran 2003 |
| 92 | +All features except those listed in the following table are supported. |
| 93 | + |
| 94 | +| Feature | Status | Comments | |
| 95 | +|------------------------------------------------------------|--------|---------------------------------------------------------| |
| 96 | +| Parameterized Derived Types | P | PDT with length type parameters is not supported. See [Proposal](https://github.com/llvm/llvm-project/blob/main/flang/docs/ParameterizedDerivedTypes.md) | |
| 97 | +| Assignment to allocatable | P | Assignment to whole allocatable in FORALL is not implemented | |
| 98 | +| Pointer Assignment | P | Polymorphic assignment in FORALL is not implemented | |
| 99 | +| The VOLATILE attribute | P | VOLATILE in procedure interfaces is not implemented | |
| 100 | +| Asynchronous input/output | P | IO will happen synchronously | |
| 101 | +| MIN/MAX extensions for CHARACTER | P | Some variants are not supported | |
| 102 | + |
| 103 | +## Fortran 95 |
| 104 | +All features are supported. |
| 105 | + |
| 106 | +## Fortran 90 |
| 107 | +All features are supported. |
| 108 | + |
| 109 | +## FORTRAN 77 |
| 110 | +All features are supported. |
0 commit comments