[Bug c/55791] gcc fails to detect wrong type in sizeof in malloc

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 22 17:57:00 GMT 2012


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-22 17:57:02 UTC ---
I think for GCC it is hard to detect this as sizeof is changed into a constant
integer early on.



More information about the Gcc-bugs mailing list