https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71188
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|missing warning converting |missing warning converting |__builtin_offsetof and |constant integer expression |sizeof to pointer |zero to pointer --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- This seems to be a general issue with all constant integer expressions that evaluate to zero, such as enumerators, so changing the Summary to reflect that. $ cat u.cpp && /build/gcc-trunk-svn/gcc/xgcc -B /build/gcc-trunk-svn/gcc -S -Wall -Wextra -Wpedantic -xc u.cpp enum { e, f }; int *p = e; int *q = f; u.cpp:3:10: warning: initialization makes pointer from integer without a cast [-Wint-conversion] int *q = f; ^