[cfe-commits] r67059 - in /cfe/trunk: include/clang/AST/ include/clang/Basic/ lib/AST/ lib/CodeGen/ lib/Sema/ test/Parser/ test/SemaCXX/

Howard Hinnant hhinnant at apple.com
Mon Mar 23 10:19:43 PDT 2009


On Mar 23, 2009, at 1:18 PM, Douglas Gregor wrote:

> Yes, both are well-formed and both mean different things. The first  
> one causes a direct binding (that's [dcl.init.ref]p5b1sb2), while  
> the second one binds to a temporary.
>
> You know, I completely screwed up the example. I meant test() to be:
>
>  void test(B b) {
>    A &ar = b; // ill-formed
>  }
>
> *sigh*, and I think I've answer my own question. Sorry for the noise.

I was wondering.  Thanks for the clarification.  Yeah, with that  
change I agree:  ill-formed.

-Howard




More information about the cfe-commits mailing list