https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92338
--- Comment #2 from Mick P. <mick.pearson at wildblue dot net> --- Of course, GCC is always right. Even though other types are not considered candidates for indexing the array, when the only other use of [] is operator[], which accepys any type... and switch statements should try to switch doubles floats and pointers too... but still GCC must be right.