https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2024-06-27
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556
--- Comment #2 from joseph at codesourcery dot com ---
Yes, this is a bug; null_pointer_constant_p gets this right, but
convert_for_assignment fails to handle enumerations and booleans as
possible null pointer constants. Other contexts such a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556
--- Comment #1 from Halalaluyafail3 ---
This bug also seems to happen with boolean types:
void*p=(_Bool)0;
Furthermore, this bug only seems to happen when the type
of the null pointer constant is an enumeration or boolean type:
void*p1=+(_Boo