Add error reporting infrastructure and support for ALLOCATE
and DEALLOCATE statements of intrinsic types without SOURCE=
or MOLD=.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/runtime/allocatable.cpp | ||
---|---|---|
52 | I finally was able to test end-to-end and there is a very sneaky issue here, auto dim is making a copy of the dimension instead of taking it by reference (at least for me using gcc 8.3, I do not know what is the C++ type resolution here). |
I finally was able to test end-to-end and there is a very sneaky issue here, auto dim is making a copy of the dimension instead of taking it by reference (at least for me using gcc 8.3, I do not know what is the C++ type resolution here).
Both:
auto& dim{descriptor.GetDimension(zeroBasedDim)};
or
descriptor.GetDimension(zeroBasedDim).SetBounds(lower, upper);
fixed the issue for me.