[cfe-dev] Patch for References

Chris Lattner clattner at apple.com
Sun Jul 15 22:46:51 PDT 2007


>> When citing the C++ standard, please use the section name as well,  
>> such as "[expr.mptr.oper]".  I assume the intent is for these  
>> names to be stable as the standard moves forward.
>
> Off by one error. It's 5p6:
>
> If an expression initially has the type “reference toT” (8.3.2,  
> 8.5.3), the type is adjusted to “T” prior to any further analysis,  
> the expression designates the object or function denoted by the  
> reference, and the expression is an lvalue.
>
> It only has "[expr]" as the section (chapter) name.

Ah, yep, we both made a mistake.  You were off by one, I was looking  
at 5.5, not 5p5 :).

5p6 makes sense, this should go in unary conversions.

-Chris



More information about the cfe-dev mailing list