This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: generalized lvalues -- patch outline
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).