[flang-commits] [flang] [flang] Better error recovery for REAL(x, [KIND=]bad) (PR #108222)

Daniel Chen via flang-commits flang-commits at lists.llvm.org
Wed Sep 11 08:25:57 PDT 2024


https://github.com/DanielCChen approved this pull request.

The code now has
```
./a.f:2:35: error: 'kind=' argument must be a constant scalar integer whose value is a supported kind for the intrinsic result type
      doubleArrAlloc = RESHAPE([ (((REAL(j, 16) / REAL(i, 16)),&
                                    ^^^^^^^^^^^
./a.f:2:49: error: 'kind=' argument must be a constant scalar integer whose value is a supported kind for the intrinsic result type
      doubleArrAlloc = RESHAPE([ (((REAL(j, 16) / REAL(i, 16)),&
                                                  ^^^^^^^^^^^

```

It looks good to me. Thanks!

https://github.com/llvm/llvm-project/pull/108222


More information about the flang-commits mailing list