[Bug middle-end/93041] GCC 10 removes an infinite loop and causes a null pointer to dereferenced

msl0000023508 at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 24 14:14:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93041

--- Comment #4 from WHR <msl0000023508 at gmail dot com> ---
OK, I'm now fully understood what's happens.
If the loop breaks, 'p' must be 0, so the later '**p' will dereference a null
pointer.
Looks like this is actually a feature...


More information about the Gcc-bugs mailing list