Re: Extended doubt regarding the bug 93432

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your response,Could you please clarify if this is a bug?
Regards,
Krishna Narayanan.

On Tue, Feb 8, 2022 at 10:28 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
wrote:

>
>
> On Tue, 8 Feb 2022 at 16:25, Krishna Narayanan via Gcc-help <
> gcc-help@xxxxxxxxxxx> wrote:
>
>> 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.
>>
>
> Yes, ideally it would warn.
>
>
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux