Skip to content

FORALL was marked as an obsolescent feature #207

@pawosm-arm

Description

@pawosm-arm

I've been trying to build Yambo with the new LLVM's flang. Apart from issues caused by multiline YAMBO_ALLOC macro (see issue #152), I've also encountered one more issue in two files, src/bse/K_multiply_by_V.F and src/bse/K_multiply_by_V_transpose.F:

flang/lib/Lower/Bridge.cpp:4885: not yet implemented: assignment to a whole allocatable inside FORALL

in both cases, the affected code was this:

forall(i_g=1:BS_nT_grps,PAR_IND_T_Haydock%element_1D(i_g)) Vo(i_g)%fragment = cZERO

Note that expecting compiler-side fix may be problematic, as FORALL was marked as an obsolescent feature, see https://flang.llvm.org/docs/FortranFeatureHistory.html#fortran-2018

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions