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.


On 21 February 2011 06:31, zhang qingshan wrote:
> IMO, function pointer is a pointer which its type descriptor is a
> function type ...
>
> Any difference with the normal pointer?

An lvalue of function type T can be implicitly converted to T*.

That is not true for non-function types.


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