You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Unused variable check only applies to a potentially movable local #890
main.cpp2...
main.cpp2(2,10): error: local variable y is not used; consider changing its name to '_' to make it explicitly anonymous, or removing it entirely if its side effects are not needed
It's also necessary to recognize shadowing.
In this case, the in parameter f is moved
instead of the last use of the first f (https://cpp2.godbolt.org/z/W4nceobbv):
Activity
JohelEGP commentedon Dec 18, 2023
It's also necessary to recognize shadowing.
In this case, the
inparameterfis movedinstead of the last use of the first
f(https://cpp2.godbolt.org/z/W4nceobbv):