llvm / llvm/llvm-project

Issue with coarray lowering

Open
#173,510 0 comments 0 reactions 0 assignees View on GitHub
crash-on-valid flang:fir-hlfir
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Looks like multiple terminators created
Terminates with
```
error: loc("/app/example.f90":11:3): operation with block successors must terminate its parent block
error: verification of lowering to FIR failed
```
https://godbolt.org/z/fozPsePz7

Contributor guide

Open the contributing guide

Research direction

Start with the Fortran reproducer in the linked Godbolt example and inspect the coarray lowering that produces multiple terminators. Use the reported FIR verification failure as the baseline; done means the reproducer no longer reports a block-termination error and lowering completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.