This is the mail archive of the gcc-help@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: why this testcase compile failed for gcc.


zhang qingshan <steven.zhang54373@gmail.com> writes:

> IMO, function pointer is a pointer which its type descriptor is a
> function type ...
>
> Any difference with the normal pointer?

The C standard does not require that a function pointer use the same
representation as any other type of pointer.  In particular, on
processors with Harvard architectures, function pointers and regular
pointers are inherently different.

Ian


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