On Wed, 2022-01-12 at 01:33 -0500, NightStrike via Gcc-help wrote: > I recently hit this problem: > > #include <strings.h> > void f() { > index[0] = 0; > } > > #gcc is 11.2.0 > gcc -c a.c > a.c:4:7: error: subscripted value is neither array nor pointer nor > vector > 4 | index[1] = 0; > | ^ > > -Wshadow (or all or extra) did not highlight that "index" was actually > a function from strings.h. It has nothing to do with -Wshadow, because nothing is shadowed. > For the future, is there anything I could > have done to make gcc tell me what the real error was? Open an issue in https://gcc.gnu.org/bugzilla and hope someone will pick it up :). -- Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University