https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101484
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Thomas Schwinge <tschwi...@gcc.gnu.org>: https://gcc.gnu.org/g:9f2bc5077debef2b046b6c10d38591ac324ad8b5 commit r12-2392-g9f2bc5077debef2b046b6c10d38591ac324ad8b5 Author: Thomas Schwinge <tho...@codesourcery.com> Date: Fri Jul 16 19:12:02 2021 +0200 [gcn] Work-around libgomp 'error: array subscript 0 is outside array bounds of â__lds struct gomp_thread * __lds[0]â [-Werror=array-bounds]' [PR101484] ... seen as of commit a110855667782dac7b674d3e328b253b3b3c919b "Correct handling of variable offset minus constant in -Warray-bounds [PR100137]". Awaiting a different solution, of course. libgomp/ PR target/101484 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around. * libgomp.h [__AMDGCN__]: Likewise.