Extended doubt regarding the bug 93432

Krishna Narayanan krishnanarayanan132002@gmail.com
Tue Feb 8 16:24:22 GMT 2022


Hello,
As an extension to the bug 93432
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93432), I would like to
add a few more points,here in the given code
(https://godbolt.org/z/sYjqjqh3d) there is a warning averted but there
is no warning shown for this code
(https://gcc.godbolt.org/z/oo5sf4oec) .
I tried it with "-fno-strict-aliasing -fwrapv
-fno-aggressive-loop-optimizations" and "fsanitize=undefined".There
are no errors for gcc but clang has runtime errors,the error for
clang: https://gcc.godbolt.org/z/1hq8x1o8E .

Can we have a warning in the second case as well? It will be much more
convenient as there is a lapse of initialization.
Hoping for your reply soon.

Thanks and regards,
Krishna Narayanan.


More information about the Gcc-help mailing list