jeanPerier wrote: +1 with @tarunprabhu testing suggestion. I am not opposed adding the flag to bbc, but it should really not be the root cause of the issue.
In the failing log, you can see that semantics mistook `y(1)` for a call ( the FIR output contains a `fir.call @_QPy(%0)`). This indeed indicates that something likely went wrong with the module file and that `y` was not read from it as expected. So it doe not look like a random setting of the `InitGlobalZero` issue, but a module file issue. I have no idea why your patch exposed it. I am guessing it may already have randomly failed and we do not know it because no flang committers had done a patch at the same time, so nobody probably investigated it. https://github.com/llvm/llvm-project/pull/123097 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits