I'd appreciate a pointer to the Standard paragraph stating that the following code is well-formed:
int main() {
int var = 0;
return [] { return sizeof(var); }(); // var is not captured!
}
Similar example appears e.g. in § 8.4.5.2, but I could not find any verbal description of it.