I noticed that the following program compiled with clang 3.4 yields an error: http://coliru.stacked-crooked.com/a/844643c70280f89b
Conversely gcc doesn’t (http://ideone.com/k7y55p)
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?