[flang-commits] [flang] [llvm] [FLANG][OpenMP]Add frontend support for ASSUME and ASSUMES (PR #120770)

Mats Petersson via flang-commits flang-commits at lists.llvm.org
Tue Dec 24 03:56:48 PST 2024


Leporacanthicus wrote:

> Assumes directive cannot occur in the execution part of Fortran. See the following in Section 8.3.2 of OpenMP 5.2 standard. So it is not an executable directive.
> 
> ```
> The assumes directive may only appear in the specification part of a module or subprogram after any USE statement, any IMPORT statement, and any IMPLICIT statement.
> ```

Thanks for pointing this out, I completely missed that this was the distinction between BEGIN ASSUMES and ASSUMES - I thought it was a bit weird that there was two different ways to express something very similar. :) 

Now fixed.

https://github.com/llvm/llvm-project/pull/120770


More information about the flang-commits mailing list