You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fortran 2018 18.3.5 (2) point 4: character argument with VALUE attribute.
Fortran 2018 18.3.5 (2) point 5: character argument without VALUE attribute.
Fortran 2018 18.3.5 (2) point 6: character argument with POINTER/ALLOCATABLE attribute.
The standard mandates to use a CFI descriptor for assumed-length/deferred length. For BIND(C) scalar assumed length with a Fortran caller and callee, a CFI descriptor (fir.box) is not used as it should for now.
Semantic checks to be done:
BIND(C) character argument must have length one if the argument has the VALUE attribute.
BIND(C) allocatable or pointer dummy argument of type CHARACTER has deferred character length.
It should be allowed for "assumed-shape, assumed-rank without the CONTIGUOUS" attribute with explicit length since it is covered by the third bullet point in (5). The latest gfortran allow this (e.g character(10) :: c2(:)) (but not scalar or explicit shape with explicit length). (quote from @jeanPerier in https://reviews.llvm.org/D137254)
The text was updated successfully, but these errors were encountered:
Fortran 2018 18.3.5 (2) point 4: character argument with VALUE attribute.
Fortran 2018 18.3.5 (2) point 5: character argument without VALUE attribute.
Fortran 2018 18.3.5 (2) point 6: character argument with POINTER/ALLOCATABLE attribute.
Please check the discussions in https://reviews.llvm.org/D137254 for more details.
The standard mandates to use a CFI descriptor for assumed-length/deferred length. For BIND(C) scalar assumed length with a Fortran caller and callee, a CFI descriptor (fir.box) is not used as it should for now.
Semantic checks to be done:
The text was updated successfully, but these errors were encountered: