[cfe-dev] Patch for References

Bill Wendling isanbard at gmail.com
Sun Jul 15 22:45:42 PDT 2007


On Jul 15, 2007, at 10:23 PM, Chris Lattner wrote:
> This patch has some of the same problems as the previous one.  For  
> example:
>
> +
> +  const FunctionType *funcT = 0;
> +
> +  if (PT == 0) {
> +    // C++ 8.5.3p1: This is a reference to a function.
> +    const ReferenceType *RT = dyn_cast<ReferenceType>(qType);
> +
> +    if (RT) {
> +      funcT = dyn_cast<FunctionType>(RT->getReferenceeType());
> +
> +      if (funcT == 0)
> +        funcT =
>
> ...
>
Actually, even better, the fix for the subscripting thingy works for  
this as well. So there isn't any modification necessary. :-)

I'll give you a submission soon.

-bw




More information about the cfe-dev mailing list