This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 4.2 more strict check for "function called through a non-compatible type"


Mark Mitchell writes:
 > 
 > I also agree with Gaby that we should document this as an extension.  If
 > we go to the work of putting it back in, we should ensure that it
 > continues to work for the foreseeable future.  Part of that is writing
 > down what we've decided.

We can't make function pointer type casts work in the general case, as
we know; all we can promise to do is make our best effort.  How can we
document that?  

I suppose we could say that it should work as long as the types of the
parameters of the two functions are compatible, but not otherwise.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]