[Bug c/114622] New: memcmp -Wstringop-overread false positive

2024-04-06 Thread arnaud.lb at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114622 Bug ID: 114622 Summary: memcmp -Wstringop-overread false positive Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c/114609] -Waddress false positive

2024-04-05 Thread arnaud.lb at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114609 --- Comment #2 from arnaud.lb at gmail dot com --- I can not think of any location where this warning would make sense for this code. The warning behaves as if we did this: ``` (&state)->member == 1 ? (_Bool)&state : (_Bool)0) ? 2 : 3; ``` In t

[Bug c/114609] New: -Waddress false positive

2024-04-05 Thread arnaud.lb at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114609 Bug ID: 114609 Summary: -Waddress false positive Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: