================
@@ -13594,6 +13594,9 @@ def warn_acc_var_referenced_lacks_op
"reference has no effect">,
InGroup<DiagGroup<"openacc-var-lacks-operation">>,
DefaultError;
+def warn_out_of_scope_var_usage
+ : Warning<"variable %0 used in else/else if block is out of scope">,
----------------
Alcaro wrote:
The variable is in scope per the C++ spec, so that's technically untrue and/or
misleading.
I'd rather go for something like 'variable %s declared in if block is
{null|zero|falsey|etc} in this branch'.
https://github.com/llvm/llvm-project/pull/156436
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits