-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: local variable is not used, but in fact it is #832
Comments
This check was added in 243d03d |
Same for the reproducer of #825. |
The reproducer of #825 has 3 similar variants:
Only the parameter of the function expression is diagnosed. |
It also rejects this case, called out by the commit message.
|
This case is accepted if you don't use UFCS (https://cpp2.godbolt.org/z/jYr1cEqfd):
|
Removing |
The transpiler emits "error: local variable is not used", but in fact it is used.
Compiling
yields
This happens at least since git version 11f2dbb.
The text was updated successfully, but these errors were encountered: