generalized lvalues -- patch outline
Marcus G. Daniels
mgd@swarm.org
Tue Nov 23 02:10:00 GMT 2004
Dale Johannesen wrote:
> Maybe so, but the file is included as part of the 176.gcc benchmark,
> and caused
> compilation errors when gcc dropped support for this (mis)feature.
Fwiw, I ran in to the problem with an Objective C application. It's
convenient to store predispatched methods as function pointers, with all
of their argument types. However, the Objective method lookup methods
return a generic IMP type which doesn't have that information. So
casting on the LHS means that the pointer is stored to the right
function pointer type, but the RHS is doesn't need to reiterate it (the
function pointer can be quite complicated).
More information about the Gcc
mailing list