https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63477
Alexandre Ganea <alexandre.ganea at ubisoft dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexandre.ganea at ubisoft dot com --- Comment #4 from Alexandre Ganea <alexandre.ganea at ubisoft dot com> --- Hi, We get what seems like a spurious warning at the following location in LLVM: https://github.com/llvm/llvm-project/blob/master/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp#L1718 The warning is: // warning: array subscript is above array bounds [-Warray-bounds] // if (NewBldVec[i] == NewBldVec[j]) { // ~~~~~~~~~~~^ This only occurs when compiling with GCC 7.1+ and 9.1/trunk (not with 8), with -O3 -Warray-bounds This has been creduce'd to: class a { int b; unsigned c; public: bool operator==(a) { return b && c; } }; class d { public: void e(); }; class f { a g(d &) const; }; a f::g(d &h) const { a j[1]; for (unsigned i;; i++) for (; i;) if (j[i] == j[0]) h.e(); } Could you please confirm the issue? Thank you!