Skip to content

[flang][runtime] REDUCE likely uses wrong callback signatures for COMPLEX VALUE  #110674

Open
@jeanPerier

Description

@jeanPerier

I am removing fir.complex, and doing so, I realize that the REDUCE runtime implementation for COMPLEX is likely not correct for all targets since it uses std::complex values for the interface of the user defined function. The user function defined in Fortran is equivalent to C Complex.

This likely does not matter on aarch64 / x86-64, so I do not have a program demonstrating the issue functionally. On windows 32 bits, that would most likely cause issues.

ValueReductionOperation<CppTypeFor<TypeCategory::Complex, 4>> operation,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorflang:runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions