[Bug c/25702] feature request: generate a warning for sizeof on a pointer

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 6 22:12:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-06 22:12 -------
Actually people use sizeof(x) all the time to mean the correct thing, for an
example: memcpy(&x, y, sizeof(x));


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702




More information about the Gcc-bugs mailing list