[flang-commits] [flang] [flang] Warn when F128 is unsupported (PR #102147)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Thu Aug 29 17:34:29 PDT 2024
vzakhari wrote:
Can someone please explain the value of this warning about the type not enabled for a target? E.g. flang-new fails on a very simple program with real*10 on arm, so should this warning be turned into an error?
```
program main
real(10) :: x
x = 1.0_10
print *, x
end program main
```
```
flang-new: .../llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1736: llvm::SDValue llvm::SelectionDAG::getConstant(const llvm::ConstantInt&, const llvm::SDLoc&, llvm::EVT, bool, bool): Assertion `Elt->getBitWidth() == EltVT.getSizeInBits() && "APInt size does not match type size!"' failed.
```
https://github.com/llvm/llvm-project/pull/102147
More information about the flang-commits
mailing list