https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|15.2 |12.5 Summary|[15/16 Regression] False |[12/13/14/15 Regression] |positive -Warray-bounds=2 |False positive |warning |-Warray-bounds=2 warning --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- It is actually a regression on all release branches (12-15). But C++ specific one, in C it was warning all the time. The primary question is what to do for 12.5, one possibility is backport r16-2000 (but without it having enough time on trunk), another is revert r12-11244 and r12-11245. A choice between clear wrong-code which we had for years and possible wrong-code and false positive warning which we had also for years but only for C on this testcase.