This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] rvalue reference implementation for C++0x


On Mon, 2007-04-30 at 16:25 -0700, Andrew Pinski wrote:
> How does this interact with vector types and code like (I just fixed
> the bug with normal references, I don't want rvalue references to be
> broken also):
> #define vector __attribute__((__vector_size(16) ))
> vector int a(void);
> vector int &&b = a();

Rvalue reference type nodes are identical to lvalue reference type
nodes, except rvalue nodes have a new TYPE_REF_IS_RVALUE flag set. Any
code that handles references should affect both types of references the
same way, unless it explicitly checks the TYPE_REF_IS_RVALUE flag.

I can check the bugfix code specifically if you want to point me to it.

-- 
-  Russell Yanofsky (PGP ID: 0x5FAA0216)
-  http://russ.yanofsky.org/
--

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]