I donβt see anything in the final draft, which would lead to the expectation of such behavior (especially since it happens quietly).
I reproduced the problem in VS10, and the behavior in GCC 4.5.0 is as expected (all variables are initialized), so I would say yes, this is an error in VS10, did you find an error?
Update: I sent this error and received a response:
Thanks for submitting this issue. This was a bug in our lambda implementation and fixed. The fix should be available in the next version of Visual Studio (and possibly Visual Studio 2010 SP1, although I cannot guarantee this).
source share