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

[crash] compile fail on function CodeGenAction::setUpTargetMachine #1273

Closed
vfdff opened this issue Jul 12, 2022 · 2 comments
Closed

[crash] compile fail on function CodeGenAction::setUpTargetMachine #1273

vfdff opened this issue Jul 12, 2022 · 2 comments

Comments

@vfdff
Copy link

vfdff commented Jul 12, 2022

test case, see detail in https://godbolt.org/z/W8W7P9Tav

! Type your code here, or load an example.
real function square(rhogw_vm)
    implicit none
    integer, parameter :: ADM_kmin = 2
    integer, parameter :: ADM_kmax = 41
    integer, parameter :: ADM_gall = 1156
    integer, parameter :: ADM_kall = 42
    integer, parameter :: ADM_lall = 2
    real(8), intent(inout) :: rhogw_vm (ADM_gall, ADM_kall, ADM_lall)
    integer :: i, l

    DO i = 1, 10000
      do l = 1, ADM_lall
        rhogw_vm(:,ADM_kmin  ,l) = 0.D0
        rhogw_vm(:,ADM_kmax+1,l) = 0.D0
      enddo
    enddo

    return
end function square
@bryanpkc
Copy link
Collaborator

The godbolt.org link shows a crash in LLVM Flang, not Classic Flang. You should report this bug to https://github.com/flang-compiler/f18-llvm-project/issues. Or were you also able to produce this failure with Classic Flang?

@vfdff
Copy link
Author

vfdff commented Jul 13, 2022

Thanks for your reminder , close this issue as reported in flang-compiler/f18-llvm-project#1601

@vfdff vfdff closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants