[Bug c/99945] missing maybe-uninitialized warning when using a cleanup function

2021-04-06 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99945 --- Comment #3 from Vincent Lefèvre --- Note that with gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, I get the same behavior. But with gcc-9 (Debian 9.3.0-22) 9.3.0, the warning is missing in the 4 cases.

[Bug c/99945] missing maybe-uninitialized warning when using a cleanup function

2021-04-06 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99945 --- Comment #2 from Vincent Lefèvre --- Unless you consider that bug 83382 is actually 2 bugs, this is not a dup. Bug 83382 is about a false positive -Werror=uninitialized error. Do you mean that it also has a missing -Werror=maybe-uninitialized

[Bug c/99945] missing maybe-uninitialized warning when using a cleanup function

2021-04-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99945 Andrew Pinski changed: What|Removed |Added Depends on||83382 --- Comment #1 from Andrew Pinski