Clang should not warn "capture 'this' is not used" if it is used in another branch of if-constexpr. #50807
Labels
bugzilla
Issues migrated from bugzilla
c++20
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
duplicate
Resolved as duplicate
false-positive
Warning fires when it should not
Extended Description
The following will fail to compile, even though the member "p" is used in another branch of the if-constexpr: https://godbolt.org/z/hWbjbWYjq
The text was updated successfully, but these errors were encountered: