https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106416
David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- Interestingly, for this C code: extern void g( int); void f( int *p) { int a = p; int b = (int *) p; g( a); g( b); } gcc does this: $ /home/dcb/gcc/results/bin/gcc -c -std=c2x jul31a.c jul31a.c: In function ‘f’: jul31a.c:6:17: warning: initialization of ‘int’ from ‘int *’ makes integer from pointer without a cast [-Wint-conversion] 6 | int a = p; | ^ jul31a.c:7:17: warning: initialization of ‘int’ from ‘int *’ makes integer from pointer without a cast [-Wint-conversion] 7 | int b = (int *) p; | ^ $ The second warning looks wrong to me.