We didn't implement one of the corner cases: a lambda which belongs to
an initializer for a field. In this case, we need to mangle the field
name into the lambda.
This fixes PR31197.
Differential D27226
[MS ABI] Implement more of the Itanium mangling rules Authored by majnemer on Nov 29 2016, 1:53 PM.
Details We didn't implement one of the corner cases: a lambda which belongs to This fixes PR31197.
Diff Detail
Event Timeline
| ||||||||||||||||
Isn't this no good if I have two lambdas in one default arg?
inline int f(int x = [] { return 1; }() + [] { return 2; }()) { return x; } int main() { return f(); }We probably need <lambda_${argno}_${id}>. =/