Clang 3.4 yields lambda rvalue reference error while gcc doesn't

I noticed that the following program compiled with clang 3.4 yields an error:

Conversely gcc doesn’t (

If the program gets compiled in clang without the ‘-stdlib=libc++’ option it compiles just fine so I suppose it might be a problem in libc++.

A quick search on LLVM’s bugzilla for libc++ and lambda doesn’t show any outstanding issue. Is this a bug or am I missing something?