[Bug c/18411] Warning not legitimate
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 9 23:29:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-09 23:29 -------
The warning is correct:
extern void f();
void g(void)
{
((void (*) (char)) f)(a);
}
this is undefined code which means we could anything at runtime (even wipe out your HD).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18411
More information about the Gcc-bugs
mailing list