Clang emits unused-lambda-capture warning for captures in generic lambdas even though they are actually used.
Fixes PR31815.
Differential D33526
Fix spurious Wunused-lambda-capture warning kongyi on May 24 2017, 5:14 PM. Authored by
Details Clang emits unused-lambda-capture warning for captures in generic lambdas even though they are actually used. Fixes PR31815.
Diff Detail
Event TimelineComment Actions Thanks for looking at this for me.
Comment Actions I don't understand why init captures have this problem. Comment Actions For normal captures, variables are safe to eliminate if they are non-ODR used or totally unused. However for init captures, non-ODR usage still depends on the capture; they are only safe to eliminate if totally unused. |