Anastasia added a comment. In D69938#1752024 <https://reviews.llvm.org/D69938#1752024>, @rjmccall wrote:
> Yes, in that case copy-elision into the global variable is guaranteed. You > can write arbitrary expressions in global initializers, however, and those > can use temporary lambdas. I guess you mean something like this? auto glambda = []() { return 1; }(); I don't see a way to change the address space of a lambda object however. It would only be possible to specify addr space qualifiers for a call operator of such lambdas. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69938/new/ https://reviews.llvm.org/D69938 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits