Define and implement an API for use by lowering to
implement operations on pointers.
Details
Details
- Reviewers
jeanPerier - Commits
- rGad424cf1ed2a: [flang] Runtime API for data pointers
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This change has broken the flang build on our latest-gcc bot:
https://lab.llvm.org/buildbot/#/builders/160/builds/3224
../llvm-project/flang/runtime/descriptor.h:52:22: error: array subscript ‘Fortran::runtime::Dimension[1]’ is partly outside array bounds of ‘Fortran::runtime::StaticDescriptor<0, true> [1]’ [-Werror=array-bounds] 52 | raw_.lower_bound = lower; | ~~~~~~~~~~~~~~~~~^~~~~~~ ../llvm-project/flang/runtime/descriptor-io.cpp:35:31: note: while referencing ‘statDesc’ 35 | StaticDescriptor<0, true> statDesc; | ^~~~~~~~
Though it has gone through latest-clang fine: https://lab.llvm.org/buildbot/#/builders/180/builds/440
So could be gcc being pessimistic or clang missing something.
Can you please investigate?
Edit: "latest" gcc is 11
-- The C compiler identification is GNU 11.1.0 -- The CXX compiler identification is GNU 11.1.0
Comment Actions
Fix has been pushed, and I'll keep an eye on the buildbots to make sure that they go/stay green. The warning was legitimate and I'm glad it was caught.
Comment Actions
Bots are green.
I want to check if clang should have warned here and raise a bug if so, it does support array-bounds. Is it possible to make a small example that represents what was going on?