Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLANG][OpenMP] Reduction of complex with logical operation causes ICE. #92440

Open
Leporacanthicus opened this issue May 16, 2024 · 1 comment · May be fixed by #94596
Open

[FLANG][OpenMP] Reduction of complex with logical operation causes ICE. #92440

Leporacanthicus opened this issue May 16, 2024 · 1 comment · May be fixed by #94596
Assignees
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] flang:ir flang:openmp

Comments

@Leporacanthicus
Copy link
Contributor

This program causes the compiler produce an internal error, when it ought to give an error at an earlier stage:

program main
  complex*8 a

  !$omp parallel reduction(.and. : a)
  !$omp end parallel
end program main

The error is:

error: verification of lowering to FIR failed
@github-actions github-actions bot added the flang Flang issues not falling into any other category label May 16, 2024
@EugeneZelenko EugeneZelenko added flang:ir crash Prefer [crash-on-valid] or [crash-on-invalid] flang:openmp and removed flang Flang issues not falling into any other category labels May 16, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented May 16, 2024

@llvm/issue-subscribers-flang-ir

Author: Mats Petersson (Leporacanthicus)

This program causes the compiler produce an internal error, when it ought to give an error at an earlier stage: ``` program main complex*8 a

!$omp parallel reduction(.and. : a)
!$omp end parallel
end program main


The error is:
```error: loc("/data/stuff/fortran/omp-complex-and.f90":4:9): 'fir.convert' op invalid type conversion
error: verification of lowering to FIR failed

@tblah tblah self-assigned this Jun 3, 2024
@klausler klausler changed the title [FLANG] Reduction of complex with logical operation causes ICE. [FLANG][OpenMP] Reduction of complex with logical operation causes ICE. Jun 3, 2024
tblah added a commit to tblah/llvm-project that referenced this issue Jun 6, 2024
Fixes llvm#92440

I had to delete part of reduction09.f90 because I don't think that
should have ever worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] flang:ir flang:openmp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants