llvm / llvm/llvm-project

[flang] verification of lowering to FIR failed on an assigned GOTO using an allocatable label variable

Open
#173,594 5 comments 0 reactions 1 assignee Claimed by @akuhlens View on GitHub
flang:ir
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Reproducer:
https://godbolt.org/z/vTvPPTqoa
```f90
allocatable :: l
assign 10 to l
goto l
10 continue
end
```

Output:
```console
error: loc("/app/example.f90":3:1): 'fir.select' op must be an integer
error: verification of lowering to FIR failed
Compiler returned: 1
```

The expected behavior is that the code either compiles successfully or produces an appropriate and informative diagnostic.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.