free (static_array)

Denys Vlasenko vda.linux@googlemail.com
Tue Jul 1 10:51:00 GMT 2008


On Tuesday 01 July 2008 09:24, Sajish V wrote:
> Thanks for the reply, Denys.
> My question was, why doesn't gcc catch it during compilation? It is clear that we are trying to free a variable from stack. Shouldn't gcc flag an error for this during compilation?

How gcc can know that free() is not supposed to be used like that?
--
vda



More information about the Gcc mailing list