[Bug c++/105400] New: g++-11 regression produces -Warray-bounds false positive warning with -O2

2022-04-26 Thread laurent.pinchart at ideasonboard dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105400 Bug ID: 105400 Summary: g++-11 regression produces -Warray-bounds false positive warning with -O2 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: no

[Bug middle-end/105400] g++-11 regression produces -Warray-bounds false positive warning with -O2

2022-04-26 Thread laurent.pinchart at ideasonboard dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105400 --- Comment #2 from Laurent Pinchart --- Thank you Andrew for the very quick answer! The original code is available at https://git.libcamera.org/libcamera/libcamera.git/tree/src/libcamera/base/object.cpp (the process() function is Object::mess

[Bug middle-end/105400] g++-11 regression produces -Warray-bounds false positive warning with -O2

2022-04-29 Thread laurent.pinchart at ideasonboard dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105400 --- Comment #3 from Laurent Pinchart --- Created attachment 52911 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52911&action=edit Original preprocessed sources Here's the full preprocessed source, corresponding to https://git.libcamera.