-Wshadow does not warn for static
variables
#62850
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
confirmed
Verified by a second party
Min repro:
expected results:
declaration of 'CONDITION' shadows a previous local [-Wshadow]
actual results: No warnings
gcc warns when the diagnostic is enabled, but clang does not.
Demo: https://godbolt.org/z/WjPTMvYP8
The text was updated successfully, but these errors were encountered: